Skip to content

Incorrect RAR extraction #1190

@arcusmaximus

Description

@arcusmaximus

Given the attached .rar (packaged in .zip only for uploading to GitHub):

  • IArchive.WriteToDirectory() creates the archive's folders but places all the files at the top level (not in the folders they belong to).
  • IAsyncArchive.WriteToDirectoryAsync() additionally extracts 766832.tr11dtp with the wrong file size (5MB instead of 4MB).

Using the latest prerelease version of SharpCompress (0.45.0-beta.378) on Windows, .NET 8.

sample.zip

(My workaround is to downgrade to 0.40.0 and extract using IArchive.ExtractAllEntries() -> IReader.MoveToNextEntry() + IReader.WriteEntryToDirectory().)

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions