4cade/bin/buildfileinfo.py

10 lines
255 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 = sys.argv[1]
with open(os.path.join(indir, "_FileInformation.txt"), "w") as writer:
2018-10-23 19:44:06 +00:00
writer.write("\r\n".join(["%s=Type(06),AuxType(4000),Access(C3)" % f for f in os.listdir(indir)]))