ID EN
OS

chmod

Python 3.11

Change the mode of path to the numeric mode. mode may take one of the following values (as defined in the stat module) or bitwise ORed combinations of them:

Syntax

PYTHON
os.chmod(path, mode, *, dir_fd=None, follow_symlinks=True)

See Also

stat stat.S_ISUID stat.S_ISGID stat.S_ENFMT stat.S_ISVTX stat.S_IREAD stat.S_IWRITE stat.S_IEXEC