Change permissions on a file

suggest change
os.chmod(path, mode)

where mode is the desired permission bits, usually written as an octal integer such as 0o644. This assumes import os. On Windows, os.chmod only changes the read-only flag. umask does not filter chmod.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents