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

2008-09-17 Thread Fredrik Lundh
A. Joseph wrote: 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

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

2008-09-17 Thread Simon Brunning
2008/9/17 A. Joseph <[EMAIL PROTECTED]>: > 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

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

2008-09-17 Thread A. Joseph
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 rec