RemoveEntry causes bad zip

Jul 18, 2008 at 7:23 PM
I have a zip file was created by 7-zip. I use .netwinzip to remove one entry from there.

Ionic.Utils.Zip.ZipFile Zs = new Ionic.Utils.Zip.ZipFile(@"c:\temp\c\test.zip");
Zs.RemoveEntry("NM.txt");
Zs.Save();

The new zip file cannot be unzipped.

Not sure what is the problem?

Thanks.



Coordinator
Jul 19, 2008 at 2:37 AM
I cannot imagine what the problem is either.

would it be possible for you to send me the zip file, before you remove the entry, as well as the broken zip file that results after you remove the entry?

Jul 21, 2008 at 4:11 PM
How can I send attachment here?
The zip file is quite simple, just a few text files. It seems that if the entry is at the end, then the remove entry has no problem. I send to notifications@codeplex.com, not sure it will reach you.


Coordinator
Jul 22, 2008 at 12:22 AM
Edited Jul 22, 2008 at 12:23 AM

you can raise it as an "issue" or workitem, and attach a file there.

Click the "Issue Tracker" tab, and create a new Issue.
Oh, wait, I see you've already done this. 
Let me have a look.

Coordinator
Jul 22, 2008 at 4:39 AM
OK, I fixed workitem 5616.
It is in v1.6, and also, I back-ported it to the v1.5 release, and updated the downloads for v1.5.
Jul 22, 2008 at 3:51 PM
Excellent job!

Thanks