[Tutor] recursive using the os.walk(path) from the os module

A. Joseph joefazee at gmail.com
Wed Sep 17 14:26:06 CEST 2008


Hi,

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?



Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080917/5c7025be/attachment.htm>


More information about the Tutor mailing list