I am learning python (python 3) and I can copy 1 file to a new directory by doing this
import shutil shutil.copyfile(\'C:/test/test.txt\', \'C:/lol/test.txt
import glob import shutil dest_dir = "C:/test" for file in glob.glob(r'C:/*.txt'): print(file) shutil.copy(file, dest_dir)