4cade/bin/buildfileinfo.py

10 lines
294 B
Python
Raw Normal View History

2018-09-13 13:53:04 +00:00
#!/usr/bin/env python3
import sys
import os
import os.path
indir, intype, inaddress = sys.argv[1:]
2018-09-13 13:53:04 +00:00
with open(os.path.join(indir, "_FileInformation.txt"), "w") as writer:
writer.write("\r\n".join(["%s=Type(%s),AuxType(%s),Access(C3)" % (f, intype, inaddress) for f in os.listdir(indir)]))