[Tutor] Library for Disk Usage (UNIX)

Tom Tucker tktucker at gmail.com
Wed Mar 26 15:11:33 CET 2008


Hello all. I'm looking for a builtin Python library capable of providing
similar output to what the unix df command provides.  Obviously, I'm trying
to avoid a system call if possible.  I'm looking for the following fields at
a mimimum, total size, used, and /path. Suggestions?  I was looking at
os.stat(/path)[WXYZ}, and os.path.getsize, but they are lacking.

Thanks for the help,

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080326/7f01cace/attachment.htm 


More information about the Tutor mailing list