MCPcopy
hub / github.com/cool-RR/PySnooper / lchmod

Method lchmod

tests/mini_toolbox/pathlib.py:1480–1487  ·  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

1478 self._accessor.chmod(self, mode)
1479
1480 def lchmod(self, mode):
1481 """
1482 Like chmod(), except if the path points to a symlink, the symlink's
1483 permissions are changed, rather than its target's.
1484 """
1485 if self._closed:
1486 self._raise_closed()
1487 self._accessor.lchmod(self, mode)
1488
1489 def unlink(self):
1490 """

Callers

nothing calls this directly

Calls 1

_raise_closedMethod · 0.95

Tested by

no test coverage detected