Answers for "how to make a local copy of a file in python with os"

6

copy file in python3

import shutil

original = r'original path where the file is currently stored\file name.file extension'
target = r'target path where the file will be copied\file name.file extension'

shutil.copyfile(original, target)
Posted by: Guest on May-21-2020

Code answers related to "how to make a local copy of a file in python with os"

Python Answers by Framework

Browse Popular Code Answers by Language