win32api.GetDiskFreeSpace
tuple = GetDiskFreeSpace(rootPath)
Retrieves information about the specified disk, including the amount of free space available.
Parameters
Win32 API References
Return Value
The return value is a tuple of 4 integers, containing the number of sectors per cluster, the number of bytes per sector, the total number of free clusters on the disk and the total number of clusters on the disk.If the function fails, an error is returned.