-1

When using the json module, is there a way I can set any file I dump to immediately turn into a hidden file (Instead of having to go into properties and tick the hidden box)

1 Answers1

0
import subprocess
subprocess.check_call(["attrib","+H","<filename>.json"])

Try this

Ninad Gaikwad
  • 4,272
  • 2
  • 13
  • 23