File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11import os
2+ import platform
23import typing as ty
34from pathlib import Path
45from fileformats .core .fileset import FileSet
@@ -59,10 +60,9 @@ def exists(self) -> bool:
5960 return True
6061
6162 def group (self ) -> ty .Optional [str ]:
62- try :
63- return self .fspath .group ()
64- except AttributeError :
63+ if platform .system () == "Windows" :
6564 return None
65+ return self .fspath .group ()
6666
6767 def is_dir (self ) -> bool :
6868 return self .fspath .is_dir ()
@@ -75,10 +75,9 @@ def name(self) -> str:
7575 return self .fspath .name
7676
7777 def owner (self ) -> ty .Optional [str ]:
78- try :
79- return self .fspath .owner ()
80- except AttributeError :
78+ if platform .system () == "Windows" :
8179 return None
80+ return self .fspath .owner ()
8281
8382 @property
8483 def parent (self ) -> Path :
You can’t perform that action at this time.
0 commit comments