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

ZipArchiver.setUpdateMode() doesn't work #2

Open
rfscholte opened this issue May 1, 2015 · 1 comment
Open

ZipArchiver.setUpdateMode() doesn't work #2

rfscholte opened this issue May 1, 2015 · 1 comment
Labels

Comments

@rfscholte
Copy link
Member

I did a quick scan and it seems like there's a copy created (renamedFile), but the content is never added to the destFile. And afterwards the renamedFile is deleted, leaving behind only the destFile with the newly added files.

@plamentotev
Copy link
Member

plamentotev commented Aug 21, 2016

This is the behavior indeed - a new zip file is created with the new content added and the old one is simply discarded. I've created a simple test case that reproduces the issue.

Do you have an idea how update mode is supposed to work? I guess the same way as the other zip programs - new files are added and existing files replace the ones in the original archive only if they are newer.

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

No branches or pull requests

2 participants