TruxtonFileIO tag

From truxwiki.com
Revision as of 14:17, 25 May 2020 by Sam (talk | contribs) (Created page with "This creates a tag associated with this file in Truxton. =Syntax= <syntaxhighlight lang="Python"> bool tag(tag, reason); </syntaxhighlight> =Return value= [https://docs.pyth...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This creates a tag associated with this file in Truxton.

Syntax

bool tag(tag, reason);

Return value

True if the tag was associated with the file, False on failure.

Sample

import truxton

def main():
  t = truxton.create()
  file = t.getfileid("5ec2a123-74d6-5da7-0653-4e6800000000")

  file.tag("Bomb", "Contains references to TNT")

if __name__ == "__main__":
  main()