copy any files from one folder to another folder in python

Solutions on MaxInterview for copy any files from one folder to another folder in python by the best coders in the world

showing results for - "copy any files from one folder to another folder in python"
Dimitri
17 Nov 2018
1import shutil
2import os
3
4os.chdir('source_image_dir_path')
5dst_dir = "your_destination_dir_path"
6for f in os.listdir():
7    shutil.copy(f, dst_dir)
similar questions