How to copy files from one folder to another using Python?
www.tutorialspoint.com › How-to-copy-files-fromDec 27, 2017 · Calling shutil.copy(source, destination) will copy the file at the path source to the folder at the path destination. (Both source and destination are strings.) If destination is a filename, it will be used as the new name of the copied file. This function returns a string of the path of the copied file. example import shutil, os files = ['file1.txt', 'file2.txt', 'file3.txt'] for f in files: shutil.copy(f, 'dest_folder')