how to copy folders from one directory to another in ubuntu with python code example Example: copy whole directory python import shutil shutil.copytree(source, destination)