plexus-archiver icon indicating copy to clipboard operation
plexus-archiver copied to clipboard

ZipArchiver.setUpdateMode() doesn't work

Open rfscholte opened this issue 10 years ago • 1 comments

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.

rfscholte avatar May 01 '15 13:05 rfscholte

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.

plamentotev avatar Aug 21 '16 20:08 plamentotev