Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bzip2 archives cannot be extracted #44

Open
rabanti-github opened this issue Oct 6, 2020 · 1 comment
Open

Bzip2 archives cannot be extracted #44

rabanti-github opened this issue Oct 6, 2020 · 1 comment

Comments

@rabanti-github
Copy link
Contributor

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:

  • dates are displayed as '01.01.0001 00:00:00'
  • CRC is 0
  • FileName is null
  • PackedSize is 0
    ... and so on.

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

Thank you in advance.

@adoconnection
Copy link
Owner

thanks for detailed info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants