Expanding Search to Subfolders

Fredrik Lundh fredrik at pythonware.com
Tue Jun 6 10:12:51 EDT 2006


Lou Losee wrote:

> How about something like:

> import os, stat
> 
> class DirectoryWalker:
>     # a forward iterator that traverses a directory tree, and
>     # returns the filename
 > ...

> not tested

speak for yourself ;-)

(the code is taken from http://effbot.org/librarybook/os-path.htm )

</F>




More information about the Python-list mailing list