I\'m looking for the number of free bytes on my HD, but have trouble doing so on python.
I\'ve tried the following:
import os stat = os.statvfs(path
def FreeSpace(drive): """ Return the FreeSape of a shared drive in bytes""" try: fso = com.Dispatch("Scripting.FileSystemObject") drv = fso.GetDrive(drive) return drv.FreeSpace except: return 0