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