python copy directory to another code example
Example 1: copy whole directory python
import shutil
shutil.copytree(source, destination)
Example 2: copy directory from one location to another python
# Source path
src = 'C:/Users / Rajnish / Desktop / GeeksforGeeks / source'
# Destination path
dest = 'C:/Users / Rajnish / Desktop / GeeksforGeeks / destination'
# Copy the content of
# source to destination
destination = shutil.copytree(src, dest)