![](/img/trans.png)
[英]sharpziplib FastZip extract rar error cannot find central directory c#
[英]“Cannot find central directory” error appears when extracting 7z file using SharpZipLib
.zip文件没有问题,只有7z。
FileStream fs = File.OpenRead(archiveFilenameIn);
zf = new ZipFile(fs); // This is where we encountered an error
ZipFile
类仅处理.zip
文件,而不处理.7z
文件。
实际上, SharpZipLib
根本不支持.7z
文件 。
“中央目录”是zip文件中存在的所有文件以及其位置的列表,用于快速提取一个文件或获取文件列表,而无需读取整个文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.