summaryrefslogtreecommitdiffstats
path: root/module/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/Utils.py')
-rw-r--r--module/Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/Utils.py b/module/Utils.py
index 5f36c2d77..b023a981d 100644
--- a/module/Utils.py
+++ b/module/Utils.py
@@ -48,7 +48,7 @@ def formatSize(size):
return "%.2f %s" % (size, sizes[steps])
def freeSpace(folder):
- if sys.platform == 'nt':
+ if os.name == "nt":
import ctypes
free_bytes = ctypes.c_ulonglong(0)
ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(folder), None, None, ctypes.pointer(free_bytes))