- chmod LIST
Changes the permissions of a list of files. The first element of the list must be the numerical mode, which should probably be an octal number, and which definitely should not a string of octal digits:
'0644'is not. Returns the number of files successfully changed. See also oct, if all you have is a string.
You can also import the symbolic
S_I*constants from the Fcntl module: