gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802)
Restore following CPython <= 3.10.5 behavior of shutil.make_archive() that went away as part of gh-93160: Do not create an empty archive if root_dir is not a directory, and, in that case, raise FileNotFoundError or NotADirectoryError regardless of format choice. Beyond the brought-back behavior, the function may now also raise these exceptions in dry_run mode.
6
6t8k committed
a86df298df5b02e2d69ea6879e9ed10a7adb85d0
Parent: a794ebe
Committed by GitHub <noreply@github.com>
on 8/16/2023, 7:00:03 AM