Recurse Directories and process files in directory

BartlebyScrivener rpdooling at gmail.com
Sat Aug 12 17:50:55 EDT 2006


KraftDiner wrote:
> Hi I need help writing a python script that traverses (recursivly) a
> directory and its sub directories and processes all files in the
> directory.

There's a great os.walk + wrapper in the Python cookbook. I once had an
unrelated problem with it, but check it out and see if it meets your
needs.

http://tinyurl.com/zwbrb

rd




More information about the Python-list mailing list