dreamfool

Need to copy JPGs in the subfolders to one single folder

Discussion created by dreamfool on Sep 15, 2011
Latest reply on Sep 19, 2011 by passiveoptical
Hello,

I am a new Python learner and have a task that I have to accomplish.  I have a bunch of JPGs that are in the subfolder's subfolder (see below):

C:\Project\Date\FolderA1\FolderA2\XXX.jpg
C:\Project\Date\FolderA1\FolderA2\YYY.jpg
C:\Project\Date\FolderB1\FolderB2\ZZZ.jpg
C:\Project\Date\FolderB1\FolderB2\AAA.jpg

What I really want to do is to point my code to C:\Project, then it can go through the subfolders and retrieve all JPGs then put it one single folder somewhere.  I have been researching online, and cannot understand how this is done.  If someone can help, I will appreciate it a lot!

Outcomes