Python copy files from specific child folder

73 views Asked by At

I have folder structure like below:

document/v00/id_001/..
document/v00/id_002/..
document/v01/id_011/..
document/v01/id_012/..
document/v02/id_021/..
document/v02/id_022/..

Is there any way for me to copy child folder without specifying the parent folder?

I have tried this:

shutil.copytree ("document/*/id_012", "destination")

Note that I replace parent folder with * in the example above which obviously not working.

0

There are 0 answers