I Have a folder with 150 pdf files. I also have a list of 200 names which correspond to a number of those pdf files. I.e. with the following format:
Mark: 100900, 890210, 1212012
Sam: 210102, 203101,
Matt: 123101, 120123, 123123, 123101
etc.
I would like to create subdirectories for all the names, and then make copies of the pdf files from the original folder into each of the subdirectories.
What I have now so far is create the directories, but now trying to figure out how to copy files from a seperate folder if there matches with the main list.
import itertools
import os
dirs = ["Mark","Sam","Matt","..."]
for item in dirs:
os.makedirs(item)