MCPcopy Index your code
hub / github.com/RustPython/RustPython / owner

Method owner

Lib/pathlib/__init__.py:941–946  ·  view source on GitHub ↗

Return the login name of the file owner.

(self, *, follow_symlinks=True)

Source from the content-addressed store, hash-verified

939
940 if pwd:
941 def owner(self, *, follow_symlinks=True):
942 """
943 Return the login name of the file owner.
944 """
945 uid = self.stat(follow_symlinks=follow_symlinks).st_uid
946 return pwd.getpwuid(uid).pw_name
947 else:
948 def owner(self, *, follow_symlinks=True):
949 """

Callers 3

test_ownerMethod · 0.45
test_owner_windowsMethod · 0.45

Calls 2

statMethod · 0.95

Tested by 3

test_ownerMethod · 0.36
test_owner_windowsMethod · 0.36