DotNetZip:IOException:文件提取-文件已打开,但实际上不是

时间:2018-07-16 13:30:02

标签: c# zip dotnetzip

当我尝试使用DotNetZip解压缩zip文件时,我一直收到IOException: The process cannot access the file 'file path' because it is being used by another process。但是该文件根本没有打开。

我的代码:

using (ZipFile zip = ZipFile.Read(pathNewVersion))
            {
                foreach(ZipEntry entry in zip.Entries)
                {
                    Debug.WriteLine(entry.FileName);
                    entry.Extract(pathCustomer, ExtractExistingFileAction.OverwriteSilently);
                }
            }

0 个答案:

没有答案