thejoshwolfe/yazl

Manipulating with files in a exist zip archive made by yazl

edgardreykh opened this issue · 2 comments

First of all, thank u for this library, this is one of the best library for archive files.

But I have a question, do you have task to add functional for adding, delete and rename files to exist zip archive? I have some ideas how to create this, but I don't think that unzipping and zipping all files is the most optimized way to do this.

I know, that this library is very old, but the hope is steal alive.

I'm also interested in this topic, I believe it is possible to implement, but not in this library.

For example, it is possible to open original file for reading and have buffer views and manipulate "ropes" into the archive. Specifically, have a method to view file index (list file names), extract a portion of file (read compressed file buffer and transform it into uncompressed file segment), modify a buffer view (write the modified portion of a file into a buffer), and once all modifications had occurred, commit all changes (reassemble the new archive, writing the new index and copying relevant portions of the old archive and inserting the relevant portions of the modifications).

Also related: #38