MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getdrivesize

Function getdrivesize

web/pgadmin/misc/file_manager/__init__.py:95–100  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

93
94
95def getdrivesize(path):
96 if _platform == "win32":
97 free_bytes = ctypes.c_ulonglong(0)
98 ctypes.windll.kernel32.GetDiskFreeSpaceExW(
99 ctypes.c_wchar_p(path), None, None, ctypes.pointer(free_bytes))
100 return free_bytes.value
101
102
103# split extension for files

Callers 1

_get_drive_sizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected