On windows you can right-click a file, click on properties and select hidden. How can I do this to a file in python?
If you don't want/don't have access to win32 modules you can still call attrib:
attrib
import subprocess subprocess.check_call(["attrib","+H","myfile.txt"])
1.4m articles
1.4m replys
5 comments
57.0k users