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

2008-09-18 Thread Richard Lovely
andles creating new directories for you. The documentation for the os.walk() contains an example that could easily be modified to do what you want. The documentation is your friend. > Message: 8 > Date: Thu, 18 Sep 2008 08:50:58 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]>

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

2008-09-18 Thread Alan Gauld
"A. Joseph" <[EMAIL PROTECTED]> 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 Which aspect is puzzling you

[Tutor] 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