how to iteratively copy files to another directory in python code example Example: copy whole directory python import shutil shutil.copytree(source, destination)