MCPcopy Index your code
hub / github.com/RustPython/RustPython / lchmod

Method lchmod

Lib/pathlib/__init__.py:1029–1034  ·  view source on GitHub ↗

Like chmod(), except if the path points to a symlink, the symlink's permissions are changed, rather than its target's.

(self, mode)

Source from the content-addressed store, hash-verified

1027 os.chmod(self, mode, follow_symlinks=follow_symlinks)
1028
1029 def lchmod(self, mode):
1030 """
1031 Like chmod(), except if the path points to a symlink, the symlink's
1032 permissions are changed, rather than its target's.
1033 """
1034 self.chmod(mode, follow_symlinks=False)
1035
1036 def unlink(self, missing_ok=False):
1037 """

Calls 1

chmodMethod · 0.95