[Python-Dev] Function in os module for available disk space, why not?

Tim Peters tim.one@home.com
Tue, 20 Mar 2001 03:30:18 -0500


[Fredrik Lundh]
> 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.

One of the best things Python ever did was to introduce os.path.getsize() +
friends, saving the bulk of the world from needing to wrestle with the
obscure Unix stat() API.  os.chmod() is another x-platform teachability pain;
if there's anything worth knowing in the bowels of statvfs(), let's please
spell it in a human-friendly way from the start.