Return the group name of the file gid.
(self)
| 1023 | raise NotImplementedError("Path.owner() is unsupported on this system") |
| 1024 | |
| 1025 | def group(self): |
| 1026 | """ |
| 1027 | Return the group name of the file gid. |
| 1028 | """ |
| 1029 | |
| 1030 | try: |
| 1031 | import grp |
| 1032 | return grp.getgrgid(self.stat().st_gid).gr_name |
| 1033 | except ImportError: |
| 1034 | raise NotImplementedError("Path.group() is unsupported on this system") |
| 1035 | |
| 1036 | def open(self, mode='r', buffering=-1, encoding=None, |
| 1037 | errors=None, newline=None): |