-
Notifications
You must be signed in to change notification settings - Fork 62
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
Reading an archive content and then adding no files to it causes archive corruption #22
Comments
Hi xtomino,
Let me know if it works |
Hi jaime-olivares, I have tried it and I can confirm that it works. BUT it was expected, because the ZIP file remained intact ;-) Steps to reproduce:
|
A9G-Data-Droid
added a commit
to A9G-Data-Droid/zipstorer
that referenced
this issue
Oct 27, 2023
- Closes jaime-olivares#39 - Closes jaime-olivares#22 - Closes jaime-olivares#37
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much for developing ZipStorer. I have used it in several apps and until now I haven't encountered a problem.
In my last project I needed check a content of archive before add new files to avoid duplicate file names in that archive. I find out if I read an archive content and then I add no files into it to avoid duplicates causes an archive corruption.
See my test code. After first run a new archive is created. After second run an existing archive is opened and after check for duplicate file names in archive no files are added. And after that the whole archive is corrupted! And I opened only an existing archive, then I read its content, I wrote down no files and in the end I close it.
Do you have an idea where the problem might be?
The text was updated successfully, but these errors were encountered: