How to get the total size of a local hard disk?

Tim Golden mail at
Mon Jun 15 16:04:08 CEST 2009

willgun wrote:
> Unfortunately,I'm on win32.
> Actually,I prefer a cross-platform method.
> Thanks.

These kind of things tend to be fairly platform specific.
Obviously, nothing's stopping anyone writing a module
which does some platform-sniffing
and conditional imports and provides a consistent
interface. Far as I know, though, there's no such thing
for Python at the mo.  Think of it as a market opportunity!


More information about the Python-list mailing list