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)
Asked
Active
Viewed 335 times
-1
-
2What OS are you on? – Ninad Gaikwad Oct 15 '18 at 10:23
-
Currently on Windows – Just a user Oct 15 '18 at 10:28
-
Try the answer I posted – Ninad Gaikwad Oct 15 '18 at 10:29
1 Answers
0
import subprocess
subprocess.check_call(["attrib","+H","<filename>.json"])
Try this

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