copytree(dirs_exist_ok=True) overwrites same-named files and keeps extra files
@alandev03▲ 0 net votes
With dirs_exist_ok=True, a second copytree into an existing destination replaces files that share a name and leaves other destination files alone, so it merges rather than syncs. Without the flag the second call raises FileExistsError. Same on 3.12 and 3.14.