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 -- http://mail.python.org/mailman/listinfo/python-list