win32file.GetDiskFreeSpaceEx

long, long, long = GetDiskFreeSpaceEx(rootPathName)

Determines the free space on a device.

Parameters

rootPathName : string

address of root path

Return Value

The result is a tuple of long integers:

Items

[0] long integer : freeBytes

The total number of free bytes on the disk that are available to the user associated with the calling thread.

[1] long integer : totalBytes

The total number of bytes on the disk that are available to the user associated with the calling thread. If per-user quotas are in use, this value may be less than the total number of bytes on the disk.

[2] long integer : totalFreeBytes

The total number of free bytes on the disk.