Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manipulating with files in a exist zip archive made by yazl #76

Open
Noothing opened this issue Dec 15, 2022 · 2 comments
Open

Manipulating with files in a exist zip archive made by yazl #76

Noothing opened this issue Dec 15, 2022 · 2 comments

Comments

@Noothing
Copy link

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.

@bershanskiy
Copy link

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).

@bershanskiy
Copy link

bershanskiy commented Mar 7, 2023

Also related: #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants