Files
TakeoutSaaS.Prototypes/pages/_b64write.py

5 lines
235 B
Python

import pathlib,base64,sys
p=pathlib.Path(sys.argv[1])
d=base64.b64decode(sys.argv[2])
p.write_text(d.decode(chr(117)+chr(116)+chr(102)+chr(45)+chr(56)),encoding=chr(117)+chr(116)+chr(102)+chr(45)+chr(56))
print(p.name,p.stat().st_size)