There is no problem with .zip file but only 7z.
FileStream fs = File.OpenRead(archiveFilenameIn);
zf = new ZipFile(fs); // This is where we encountered an error
There is no problem with .zip file but only 7z.
FileStream fs = File.OpenRead(archiveFilenameIn);
zf = new ZipFile(fs); // This is where we encountered an error
The ZipFile
class only handles .zip
files, not .7z
files.
In fact, SharpZipLib
does not support .7z
files at all.
A "central directory" is a list of all the files present in a zip-file and where they're located, used to speedily extract one file or get a file listing without reading the whole file.