mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #916] [MERGED] Implement multipart rar handling for ExtractAllEntries #1344
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/916
Author: @Morilli
Created: 5/14/2025
Status: ✅ Merged
Merged: 5/14/2025
Merged by: @adamhathcock
Base:
master← Head:rar-multipart-reader📝 Commits (5)
1a452acimplement ExtractAllEntries for multipart rar filesc0cd998add failing testa3570a5fix AbstractReader.Skip for multipart files7989ab2modify now-broken test6e51967format📊 Changes
3 files changed (+45 additions, -36 deletions)
View changed files
📝
src/SharpCompress/Archives/Rar/RarArchive.cs(+10 -0)📝
src/SharpCompress/Readers/AbstractReader.cs(+1 -1)📝
tests/SharpCompress.Test/Rar/RarReaderTests.cs(+34 -35)📄 Description
One side-effect of the changes here is that skipping over encrypted entries for which the password is not known in a multipart rar file using the reader interface no longer works.
However reading those entries does not work because it isn't currently implemented, and the skipping was bad as well because it would fail to skip all file parts and returned after skipping the first part only, so I think it is fair to remove this functionality.
It could be implemented properly but I think it would take some effort to extract the needed information and perhaps need additional interface methods.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.