calculate system disk space

Heiko Wundram modelnine at bit-bukket.org
Sat Dec 10 14:42:50 EST 2005


rainbow.cougar at gmail.com wrote:
> A little somehting I rigged up when I found the Python call to be Linux
> specific:

os.stat isn't Linux-specific, isn't even Unix-specific, works just fine
under Windows. Under Windows you don't have sparse files though, so there
are no fields which give you the block-size of the device or the
block-count of a file, just the st_size field which gives you the data size
of the file.

--- Heiko.



More information about the Python-list mailing list