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

Tim Golden mail at timgolden.me.uk
Mon Jun 15 10:04:08 EDT 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!

TJG



More information about the Python-list mailing list