Skip to content
Advertisement

Copy files from multiple specific subfolders

Under the file path D:/src, I have images folders and its subfolders which have a regular structure as follows:

JavaScript

I want to copy all .jpg files in Subfolder b from Folder A, B, C and so on to a new folder Subfolder b in D:/dst. How can I do it in Python? Thanks.

JavaScript

Here is what I have found from the following link may helps:

Copy certain files from one folder to another using python

JavaScript

Advertisement

Answer

Try this

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement