PyDocs

Nav

Generic Operating System Services

lchmod

os

functionUnixWindowsnot LinuxFreeBSD >= 1.3NetBSD >= 1.3not OpenBSD
  • lchmod(path, mode)
Change the mode of path to the numeric mode. If path is a symlink, this affects the symlink rather than the target. See the docs for chmod() for possible values of mode. As of Python 3.3, this is equivalent to os.chmod(path, mode, follow_symlinks=False).
Changed in 3.6, 3.13
  • 3.6: Accepts a path-like object.
  • 3.13: Added support on Windows.
0 Examples
No examples for os/lchmod.
See Also
No see-alsos for os/lchmod
0 Notes
No notes for lchmod