How does one change file access permissions?
f = open('test','w')
f.close()
Defaults access permissions: 10600
You can use os.chmod
os.chmod(path, mode)
You probably want to use an octal integer literal, like 0777 for the mode.
Use os.chmod(path, mode)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With