Let's say I have a folder which has subfolders project1, project2, project3, ... in it.
In each of project, I have subfolders fixedly named process, progress and session in it, inside those subfolders, there are also other subfolders and image files.
Now I want to create subfolders files1 for each project to move all the images from process, and create files2 to move all the images from progress and session.
Please note the names of images for each projects are unique, so we ignore image name duplicates issues.
For creating files1 for project1, I use:
import os
dirs = './project1/files1'
if not os.path.exists(dirs):
os.makedirs(dirs)
But I need to loop through all the projects folders.
How could we do that in Python? Sincere thanks.

For create
file1andfile2for eachproject: