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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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