image

the sleepy snake

index :: path :: get_free_space

get_free_space(drive=None)

Retuns the amount of free space on a drive or directory as tuple

(available-bytes, total-bytes, free-bytes)

drive may be a drive, directory or UNC path. If ist a UNC path it has to be slash terrminated. If drive is None, information is retrieved for the current directory


note: this function works from win95 OSR2 on