adoconnection / SevenZipExtractor

C# wrapper for 7z.dll
MIT License
307 stars 83 forks source link

Bzip2 archives cannot be extracted #44

Open rabanti-github opened 4 years ago

rabanti-github commented 4 years ago

It looks like bizp2 archives (.bz2) cannot be extracted at all. I tested the extraction, using the example program:

using (ArchiveFile archiveFile = new ArchiveFile(@"C:\temp\test.txt.bz2"))
            {
                // extract all
                archiveFile.Extract("Output");
            }

The format is guesses as expected as Formats.BZip2 and the number of containing entries are also correct. However, in the method entry.Extract(entry.FileName);, the enclosed files cannot be extracted. The problem occurs in the line 104 of ArchiveFile.cs. The entries do not contain any valid values:

The files can be extracted in 7Zip, though. See attached example files as reference exampleArchives.zip

Thank you in advance.

adoconnection commented 4 years ago

thanks for detailed info!