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

Method owner

tools/python-3.11.9-amd64/Lib/pathlib.py:1015–1023  ·  view source on GitHub ↗

Return the login name of the file owner.

(self)

Source from the content-addressed store, hash-verified

1013 return os.stat(self, follow_symlinks=follow_symlinks)
1014
1015 def owner(self):
1016 """
1017 Return the login name of the file owner.
1018 """
1019 try:
1020 import pwd
1021 return pwd.getpwuid(self.stat().st_uid).pw_name
1022 except ImportError:
1023 raise NotImplementedError("Path.owner() is unsupported on this system")
1024
1025 def group(self):
1026 """

Callers

nothing calls this directly

Calls 1

statMethod · 0.95

Tested by

no test coverage detected