TruxtonFileIO tag

From truxwiki.com
Revision as of 05:47, 28 May 2020 by Sam (talk | contribs)
Jump to navigation Jump to search

This creates a tag associated with this file in Truxton.

Syntax

bool tag(tag, reason, origin);

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", truxton.TAG_ORIGIN_HUMAN)

if __name__ == "__main__":
  main()