SyntaxFix
Write A Post
Hire A Developer
Questions
take a look at shutil. shutil.copyfile(src, dst) will copy a file to another file.
shutil
shutil.copyfile(src, dst)
Note that shutil.copyfile will not create directories that do not already exist. for that, use os.makedirs
shutil.copyfile
os.makedirs