copy function in python for folders code example Example: copy whole directory python import shutil shutil.copytree(source, destination)