File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import os
2+ import platform
23import typing as ty
3- from pathlib import Path , WindowsPath
4+ from pathlib import Path
45from fileformats .core .fileset import FileSet
56from fileformats .core .exceptions import (
67 FormatMismatchError ,
@@ -59,7 +60,7 @@ def exists(self) -> bool:
5960 return True
6061
6162 def group (self ) -> ty .Optional [str ]:
62- if isinstance ( self . fspath , WindowsPath ) :
63+ if platform . system () == "Windows" :
6364 return None
6465 return self .fspath .group ()
6566
@@ -74,7 +75,7 @@ def name(self) -> str:
7475 return self .fspath .name
7576
7677 def owner (self ) -> ty .Optional [str ]:
77- if isinstance ( self . fspath , WindowsPath ) :
78+ if platform . system () == "Windows" :
7879 return None
7980 return self .fspath .owner ()
8081
You can’t perform that action at this time.
0 commit comments