4 ms·
Huh? I just checked the Info-ZIP zip man page, and it says (reformatted): > -g, --grow: Grow (append to) the specified zip archive, instead of creating a new o
by Hello71 5y ago
Huh? I just checked the Info-ZIP zip man page, and it says (reformatted):
> -g, --grow: Grow (append to) the specified zip archive, instead of creating a new one. If this operation fails, zip attempts to restore the archive to its original state. If the restoration fails, the archive might become corrupted. This option is ignored when there's no existing archive or when at least one archive member must be updated or deleted.
I tested this on Linux and it appears to work as advertised. I assume the reason why it is not enabled by default is because "If the restoration fails, the archive might become corrupted".
edit: python zipfile in append mode also appears to avoid rewriting the zip file. libarchive doesn't seem to support appending to zip files.
- EvanAnderson 5y agoWell I feel like a dunce. Thanks for this tip! I didn't see this option on the version of Info-ZIP they were using but that would definitely do what I wanted. I thought I looked at current man pages but I guess I didn't.
- EvanAnderson 5y agoI checked up on this. Turns out the "-g" option isn't listed in the "-?" help. I guess I didn't look at the man page-- just the "-?" help.