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

Method owner

Lib/pathlib/__init__.py:1139–1144  ·  view source on GitHub ↗

Return the login name of the file owner.

(self, *, follow_symlinks=True)

Source from the content-addressed store, hash-verified

1137
1138 if pwd:
1139 def owner(self, *, follow_symlinks=True):
1140 """
1141 Return the login name of the file owner.
1142 """
1143 uid = self.stat(follow_symlinks=follow_symlinks).st_uid
1144 return pwd.getpwuid(uid).pw_name
1145 else:
1146 def owner(self, *, follow_symlinks=True):
1147 """

Callers 3

test_ownerMethod · 0.80
test_owner_windowsMethod · 0.80

Calls 2

statMethod · 0.95

Tested by 3

test_ownerMethod · 0.64
test_owner_windowsMethod · 0.64