python copy directory 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)
Example 3: python copy dir
from shutil import copytree
shutil.copytree("sourcedir", "destination")