4cade/bin/buildfileinfo.py

10 lines
294 B
Python
Executable File

#!/usr/bin/env python3
import sys
import os
import os.path
indir, intype, inaddress = sys.argv[1:]
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)]))