I have a long list of files from multiple folders and I would like to have them all in a single location so far I have:
import os
import shutil
dest_folder = 'C:\\dest_folder'
files = [
'file1.csv', 'file2.csv',
'file3.csv',
]
for f in files:
shutil.copy(f, 'dest_folder')
This is not working for me and I cant seem to figure out why, any help would be great, thanks
>Solution :
I’m not very familiar with this kind of stuff, but I’m not sure if you meant to have ‘dest_folder’ in quotes at the end.