We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1cbff commit 29e3a83Copy full SHA for 29e3a83
fileformats/generic/fsobject.py
@@ -1,5 +1,5 @@
1
import os
2
-import platform
+import sys
3
import typing as ty
4
from pathlib import Path
5
from fileformats.core.fileset import FileSet
@@ -60,7 +60,7 @@ def exists(self) -> bool:
60
return True
61
62
def group(self) -> ty.Optional[str]:
63
- if platform.system() == "Windows":
+ if sys.platform == "win32":
64
return None
65
return self.fspath.group()
66
@@ -75,7 +75,7 @@ def name(self) -> str:
75
return self.fspath.name
76
77
def owner(self) -> ty.Optional[str]:
78
79
80
return self.fspath.owner()
81
0 commit comments