I have a "work list style" application where the user selects a zip file from a list, then clicks a button to unzip it to a local folder.
Here is an extract from the code used:
ZipFile zip = Ionic.Zip.ZipFile.Read(sourcePackage);
zip.ExtractAll(destination);
zip.Dispose();
Everything works fine the first time but if the user tries to unzip the same file again (even after unzipping a few others), it goes too quick and all that is created in the destination folder is what looks like a temp file (e.g. 'x2hiex0z.pj0').
It's as if Ionic.Zip.ZipFile.Read is creating a cache of previously unzipped file names.
If so, how do I clear it so that I can force it to unzip the file again?
I gues you get some kind of a "File Exist"-Exception
Try:
or with a Thread: