I have a load of Legacy zips that have been zipped incorrectly.
Files were saved in the zip so they are folder\filename rather than folder/filename.
What that means is code like this:
using (ZipFile zipFile = new ZipFile(@"zippath.zip"))
{
for (int i = 0; i < zipFile.Count; i++)
{
var entry = zipFile[i];
zipFile.BeginUpdate();
zipFile.Delete(entry);
zipFile.CommitUpdate();
...
Is throwing a
Cannot find entry to delete
This is a known problem found here but unfortunately I have no control on how the zips are made and there are years worth of zip files I need to work with. Is there a way I can either fix the delete statement or repair (in C#) the zip file before using it?
Thanks!