copy shutil code example
Example 1: copy whole directory python
import shutil
shutil.copytree(source, destination)
Example 2: python copy file
from shutil import copyfile
copyfile(src, dst)
import shutil
shutil.copytree(source, destination)
from shutil import copyfile
copyfile(src, dst)