2 ms·
> in theory you could update archives in an append-only manner when saving and have a pack command to rebuild the ZIP file in order to remove the unnecessary da
by masklinn 9y ago
> in theory you could update archives in an append-only manner when saving and have a pack command to rebuild the ZIP file in order to remove the unnecessary data
In fact I'd expect a crash-safe "update" to do that, the in-line update only works if the revision of a file is no bigger than the old one.
If you use appending methods to update the file, you write the new version of the existing file, you write a new central directory, and you remove the old directory entry. Only at that point should the update become visible.