here is my code...
string file = Environment.CurrentDirectory+"\\Downloads\\zipfile.zip";
string unpackDirectory = Path.GetDirectoryName(Environment.CurrentDirectory);
var zip = new Ionic.Zip.ZipFile();
zip = Ionic.Zip.ZipFile.Read(file);
zip.ExtractExistingFile = ExtractExistingFileAction.OverwriteSilently;
zip.ExtractAll(unpackDirectory);
when it runs it creates a file with an extension .PendingOverwrite then outputs in the console that access to that file is denied.
I think maybe the code is running twice back to back but not entirely sure. any help would be appreciated.