Skip to content

ExtractToDirectory has missing files when working with encrypted zip files which contain directories #938

@aaronbarak666-art

Description

@aaronbarak666-art

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions