MCPcopy Index your code
hub / github.com/python/cpython / lchmod

Method lchmod

Lib/pathlib/__init__.py:1227–1232  ·  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

1225 os.chmod(self, mode, follow_symlinks=follow_symlinks)
1226
1227 def lchmod(self, mode):
1228 """
1229 Like chmod(), except if the path points to a symlink, the symlink's
1230 permissions are changed, rather than its target's.
1231 """
1232 self.chmod(mode, follow_symlinks=False)
1233
1234 def unlink(self, missing_ok=False):
1235 """

Calls 1

chmodMethod · 0.95