mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Correct capitalization problem with api call
This commit is contained in:
parent
2a22bea290
commit
7c5079ec91
@ -108,7 +108,7 @@ def diskusage(human_readable=False, path=None):
|
||||
_, total, free = \
|
||||
ctypes.c_ulonglong(), ctypes.c_ulonglong(), ctypes.c_longlong()
|
||||
if sys.version_info >= (3, ) or isinstance(path, six.text_type):
|
||||
fun = ctypes.windll.kernel32.GetDiskFreeSpaceExw
|
||||
fun = ctypes.windll.kernel32.GetDiskFreeSpaceExW
|
||||
else:
|
||||
fun = ctypes.windll.kernel32.GetDiskFreeSpaceExA
|
||||
ret = fun(path, ctypes.byref(_), ctypes.byref(total), ctypes.byref(free))
|
||||
|
Loading…
Reference in New Issue
Block a user