Saving a zip file twice can cause an exception.
public void DummyTest()
var zip = Provider.NodeRepository.ZipFile;
var entries = zip.Entries.Where(e => e.FileName.Contains("Download")).ToArray();
//PART1 - Add directory and save
//PART2 - Rename paths (not related to XX directory from above) and save
foreach (var zipEntry in entries)
zipEntry.FileName = zipEntry.FileName.Replace("Download", "Download2");
It seems to reset the Source property of saved entries to "None" which causes exceptions when saving more than once.
A description of the issue can be found here:
As a quick guess, it might be that after saving, the Source should be "ZipFile" rather than "None", but I don't know about the implications though.