This project is read-only.


extracting zip with several segments, cannot delete .zip file afterwards


Here's the scenario:
  1. Create a zip file which contains several segments: set MaxOutputSegmentSize of the ZipFile
  2. Extract the zip File using:
    using (ZipFile zipFile = ZipFile.Read(zipFilePath)){ zipFile.ExtractAll(extractedDirectory, ExtractExistingFileAction.OverwriteSilently);}
  3. Delete the original zip file.
  4. The deletion of the zip file itself (.zip) fails after the extraction because the file is still in use. The other segments of the same zip ( .z01, *.z02 ..) are not in use and can be deleted.
    Note: The problem doesn't occur if the zip contains only one zip file and no additional segment files.
Closed Jun 15, 2011 at 8:04 PM by Cheeso
this is fixed in changeset 79174. The first binary to get this fix is v1.9.1.6.