1import shutil
2
3original = r'original path where the file is currently stored\file name.file extension'
4target = r'target path where the file will be copied\file name.file extension'
5
6shutil.copyfile(original, target)
7
1>>> import shutil
2>>> # Copy the file in same folder with different name
3>>> shutil.copy('original.txt', 'duplicate.txt')
4'/home/username/duplicate.txt'
5>>> shutil.copy('original.txt', 'my_folder/duplicate.txt')
6'/home/username/my_folder/duplicate.txt'