Getting directory size

P at draigBrady.com P at draigBrady.com
Mon Mar 21 13:27:51 EST 2005


francisl wrote:
> How can we get a full directory size (sum of all his data)?
> like when we type `du -sh mydir`
> 
> Because os.path.getsize('mydir') only give the size of the directory 
> physical representation on the disk.

Have a look at:
http://www.pixelbeat.org/scripts/dutop

Pádraig.



More information about the Python-list mailing list