Seeking help in Python


There is a folder containing multiple subfolders with different subject IDs, inside each of them are multiple files with different image IDs of the same extension in deeper subdirectories.

The files are classified into 3 types, each image ID only corresponds to one type, as shown in a provided .csv file. But the files are randomly distributed throughout the folders.

Now we want to copy the files into 3 new folders, grouped by each of the 3 types. What should be done?

Source: Python Questions