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))
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.