Commit aa5d1703 by rfkelly0

fix varname typo: ctypes.ulonglong => ctypes.c_ulonglong

parent b63c5045
...@@ -167,7 +167,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): ...@@ -167,7 +167,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
if platform.system() == 'Windows': if platform.system() == 'Windows':
try: try:
import ctypes import ctypes
free_bytes = ctypes.ulonglong(0) free_bytes = ctypes.c_ulonglong(0)
ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(self.root_path), None, None, ctypes.pointer(free_bytes)) ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(self.root_path), None, None, ctypes.pointer(free_bytes))
return free_bytes.value return free_bytes.value
except ImportError: except ImportError:
...@@ -180,7 +180,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): ...@@ -180,7 +180,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
if platform.system() == 'Windows': if platform.system() == 'Windows':
try: try:
import ctypes import ctypes
total_bytes = ctypes.ulonglong(0) total_bytes = ctypes.c_ulonglong(0)
ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(self.root_path), None, ctypes.pointer(total_bytes), None) ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(self.root_path), None, ctypes.pointer(total_bytes), None)
return total_bytes.value return total_bytes.value
except ImportError: except ImportError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment