So I want to hide a file in python.
hide("VerySecretFile.txt")
This method should also work with folders. any idea how i can do it?
So I want to hide a file in python.
hide("VerySecretFile.txt")
This method should also work with folders. any idea how i can do it?
You can just add +h to file properties like that:
p = os.popen('attrib +h ' + filepath)
t = p.read()
p.close()