Simple py script to calc folder sizes

Caleb Hattingh caleb.hattingh at gmail.com
Thu Mar 30 01:31:32 EST 2006


Hi John

Your code works on some folders but not others.   For example, it works
on my /usr/lib/python2.4 (the example you gave), but on other folders
it terminates early with StopIteration exception on the
os.walk().next() step.

I haven't really looked at this closely enough yet, but it looks as
though there may be an issue with permissions (and not having enough)
on subfolders within a tree.

I don't want you to work too hard on what is my problem, but are there
any ideas that jump out at you?

Regards
Caleb




More information about the Python-list mailing list