MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / lchmod

Method lchmod

tools/python-3.11.9-amd64/Lib/pathlib.py:1134–1139  ·  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

1132 os.chmod(self, mode, follow_symlinks=follow_symlinks)
1133
1134 def lchmod(self, mode):
1135 """
1136 Like chmod(), except if the path points to a symlink, the symlink's
1137 permissions are changed, rather than its target's.
1138 """
1139 self.chmod(mode, follow_symlinks=False)
1140
1141 def unlink(self, missing_ok=False):
1142 """

Callers

nothing calls this directly

Calls 1

chmodMethod · 0.95

Tested by

no test coverage detected