This project is read-only.

extracting zip with several segments.

Oct 11, 2010 at 11:12 AM
Edited Oct 11, 2010 at 11:13 AM


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.


Oct 14, 2010 at 10:44 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.