[Python-Dev] Function in os module for available disk space, why not?
Fredrik Lundh
fredrik@pythonware.com
Tue, 20 Mar 2001 08:36:59 +0100
tim wrote:
> Here's a radical suggestion: Start a x-platform project on SourceForge,
> devoted to producing a C library with a common interface for
> platform-dependent crud like "how big is this file?" and "how many bytes free
> on this disk?" and "how can I execute a shell command in a portable way?"
> (e.g., Tcl's "exec" emulates a subset of Bourne shell syntax, including
> redirection and pipes, even on Windows 3.1).
counter-suggestion:
add partial os.statvfs emulation to the posix module for Windows
(and Mac), and write helpers for shutil to do the fancy stuff you
mentioned before.
Cheers /F