Simple py script to calc folder sizes
Ben Cartwright
bencvt at gmail.com
Tue Mar 21 18:51:43 EST 2006
Caleb Hattingh wrote:
> Unless you have a nice tool handy, calculating many folder sizes for
> clearing disk space can be a click-fest nightmare. Looking around, I
> found Baobab (gui tool); the "du" linux/unix command-line tool; the
> extremely impressive tkdu: http://unpythonic.net/jeff/tkdu/ ; a python
> script I didn't really understand at
> http://vsbabu.org/webdev/zopedev/foldersize.html (are these "folder
> objects" zope thingies?); there are also tools that can add a
> "foldersize" column into Explorer on Windows
> (foldersize.sourceforge.net, for example); the superb freeCommander
> file-manager (win32) has the functionality built in, and so on.
You also might want to take a look at KDirStat
(http://kdirstat.sourceforge.net/) and its win32 counterpart,
WinDirStat (http://windirstat.sourceforge.net/).
> "du" is closest to what I was looking for, but is not immediately
> cross-platform: I know I can probably get it through Cygwin, and there
> is probably a win32 binary or clone around somewhere
Try http://unxutils.sourceforge.net/ ... much quicker to set up than
Cygwin.
A pure Python port of du (and other unix utilities) would be cool,
though.
--Ben
More information about the Python-list
mailing list