Return the login name of the file owner.
(self)
| 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 | """ |