recursive using the os.walk(path) from the os module

Simon Brunning simon at
Wed Sep 17 14:41:39 CEST 2008

2008/9/17 A. Joseph <joefazee at>:
> I want to search through a directory and re-arrange all the files into e.g
> All .doc files go into MS WORD folder, all .pdf files goes into PDF Folder.
> I`m thinking of doing something with the os.walk(path) method from os
> module, I need some ideal how the algorithm should look like, maybe
> recursive ..any deal?

This help?

Simon B.
simon at
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues | Twitter: brunns

More information about the Python-list mailing list