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

Method _posix_permissions

Lib/pathlib/__init__.py:724–726  ·  view source on GitHub ↗

Return the POSIX file permissions.

(self, *, follow_symlinks=True)

Source from the content-addressed store, hash-verified

722 return S_ISLNK(st.st_mode)
723
724 def _posix_permissions(self, *, follow_symlinks=True):
725 """Return the POSIX file permissions."""
726 return S_IMODE(self._stat(follow_symlinks=follow_symlinks).st_mode)
727
728 def _file_id(self, *, follow_symlinks=True):
729 """Returns the identifier of the file."""

Callers 1

_copy_infoFunction · 0.80

Calls 2

_statMethod · 0.95
S_IMODEFunction · 0.90

Tested by

no test coverage detected