Edit without recompressing
createZipModifier() edits an archive without touching the entries you keep:
save() appends the changes after the original bytes (fast, but replaced data
lingers as dead bytes), while saveCompact() rewrites canonically and
truly deletes โ still without recompressing anything. Pick edits, apply, and
compare the two outputs byte for byte.
The demo archive holds a dominant report.csv (~24 KB), a small
logo.svg and a readme.txt.
| Output | Bytes | Entries | Notes |
|---|