View Single Post
Old Jan 1st, 2006, 2:50 PM   #1
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Moving files between folders

I need to move all .jpg files in one folder/directory that are older than a given date, let's say April 1, 2003, to another folder. How can I do this best in Python? Need ideas.

I am using Windows XP and have looked at glob.glob() and os.stat(). When you move a file do you have to use copy and remove?
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote