[issue12442] shutil.disk_usage()
Giampaolo Rodola'
report at bugs.python.org
Fri Jul 1 10:24:28 CEST 2011
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
Agreed.
New patch removes the percentage and fixes computations on posix as recommended by Charles-François:
free = st.f_bavail * st.f_bsize
total = st.f_blocks * st.f_frsize
used = (total - st.f_bfree * st.f_bsize)
----------
Added file: http://bugs.python.org/file22532/diskusage3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12442>
_______________________________________
More information about the Python-bugs-list
mailing list