Difference between revisions of "TruxtonFileIO changetype"
Jump to navigation
Jump to search
(→Sample) |
|||
| Line 11: | Line 11: | ||
=Sample= | =Sample= | ||
| − | < | + | <source lang="Python" highlight="7"> |
import truxton | import truxton | ||
Revision as of 07:23, 1 October 2022
This changes the type of the file.
It modifies the FileTypeID column of the File table.
Syntax
bool changetype(newtype);
Return value
True if the FileTypeID column of the File table was modified, False on failure.
Sample
import truxton
def main():
t = truxton.create()
file = t.getfileid("5ec2a123-74d6-5da7-0653-4e6800000000")
file.changetype(11000)
return None
if __name__ == "__main__":
main()