python os how to copy a directory to another existing location code example Example: copy whole directory python import shutil shutil.copytree(source, destination)