# to copy a file from one place to other
import shutil
shutil.copy2('source/my_file.jpg', 'copy_here/my_file_copy.jpg')
import shutil
shutil.copyfile('file.txt','file-copy.txt') # Copy contents alone
shutil.copy('file.txt','file-copy.txt') # Copy content and permission
shutil.copy2('file.txt','file-copy.txt') #Copy content, permission and metadata