Created an encrypted zip file using 7zip with the following structure:
TestDirectory\a.txt
TestDirectory\b.txt
The following code only extracts a.txt:
using IArchive archive = ArchiveFactory.Open(zipPath, new ReaderOptions() { Password = "test" } );
archive.ExtractToDirectory(outputPath)
Zip files without a password, or without directories seem to work ok
Also 7z files work.
This seems to be an issue with ExtractAllEntries, since this test case works on version 0.38.0, when I use WriteToDirectory instead.
This does break again in 0.40.0, because of #900 which made WriteToDirectory use ExtractAllEntries
Created an encrypted zip file using 7zip with the following structure:
The following code only extracts
a.txt:Zip files without a password, or without directories seem to work ok
Also 7z files work.
This seems to be an issue with
ExtractAllEntries, since this test case works on version0.38.0, when I useWriteToDirectoryinstead.This does break again in
0.40.0, because of #900 which madeWriteToDirectoryuseExtractAllEntries