Repository navigation
zippathlib 0.4.0 #6
ptmcg
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Added warning when writing to an existing file in a ZIP archive. Writing to an existing file does not replace the contents of that file, but instead creates a duplicate entry. Calling
ZipPath.write_text()orwrite_bytes()to an existing file will now raise aZipPathDuplicateFileWarning.Added methods to
ZipPathAPI to detect and purge duplicate entries:scan_for_duplicates()returns a list of `(str, int) tuples, of all duplicated entries and their instance countspurge_duplicates()removes duplicates by creating a copy of the current ZIP archive, copying only the latest version of each file, and then replacing the current ZIP archive with the purged copyAdded CLI
--checkoption, support for checking for large files or duplicates.Added CLI
--purgeoption, support for purging duplicates, retaining only the latest.This discussion was created from the release zippathlib 0.4.0.
All reactions