Closed vir8wh47 closed 1 year ago
setOverrideExistingFilesInZip
works only with ZipFile
api and not with ZipOutputStream
. When using ZipOutputStream
it will not be possible to modify a zip file (i.e., to remove a file from zip for example). I will add it to the documentation for setOverrideExistingFilesInZip
.
Thanks for reply and for documentation update!
When use
net.lingala.zip4j.io.outputstream.ZipOutputStream
to write file into a zip archive,setOverrideExistingFilesInZip
(ofnet.lingala.zip4j.model.ZipParameters
) seems not works and not consider file existence.In the follow example you'll found
a.txt
twice in the zip.