March 2003
Intermediate to advanced
656 pages
39h 30m
English
chmod
chmod(path,mode)
Changes the permissions of file path, as
encoded in integer mode.
mode can be zero or more of
os.R_OK, os.W_OK, and
os.X_OK (with the bitwise-OR operator
| joining them if more than one) to set permission
to read, write, and execute. On Unix-like platforms,
mode can also be a richer bit pattern, as
covered in Section 10.2.2 earlier in
this chapter.