Repository navigation
feat: support split and multi-volume archives - #203
Merged
Merged
Conversation
nextestudios
force-pushed
the
feature/65-multi-volume
branch
from
September 27, 2026 22:40
9304dcb to
c35afa9
Compare
Open .7z.001, .zip.001, .partN.rar, .rar + .r00 and .z01 + .zip sets from any volume. VolumeSet gathers the volumes next to the chosen one and lists the missing ones: gaps in the numbering and, when the format says how many there are, the last one (7z declared header offset, RAR end-of-archive "more volumes" flag, ZIP end-of-central-directory disk number). With a missing volume nothing is opened or extracted. Split TAR/TAR.GZ is refused. Extraction still goes through SafeExtractor; the Mark of the Web comes from any volume that has one. Marked volumes of one set count once in a batch extraction. Co-Authored-By: Claude Opus 5.5 <[email protected]>
SharpCompress 1.0.0 fails with EndOfStream on entries that cross volumes of a spanned zip. Join the volumes and rewrite the central directory in memory instead, so the single-file reader is used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
nextestudios
force-pushed
the
feature/65-multi-volume
branch
from
September 27, 2026 22:47
39a2a90 to
c5bbffa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VolumeSet(Infrastructure.Archives) gathers the volumes of a split archive from any volume:.7z.001/.zip.001(plain split),.partN.rar,.rar+.r00…(old RAR naming),.z01…+.zip(Info-ZIP/WinZip spanned).RarTailwalking only the block headers; ZIP: disk number in the EOCD of the.zip). A plain.zip.001split has no such marker, so a missing tail volume is reported as MissingVolume from the engine failure. RAR entries still incomplete after listing are also refused. Never a "completed" result with a missing part.SharpCompressEngineopens the set with the format's own multi-file reader (ZipArchive/SevenZipArchive/RarArchive.Open(IEnumerable<FileInfo>));ArchiveService.Detectdetects the format from the first volume (or the name when the first is missing, so the error lists it). Split TAR/TAR.GZ is refused (BclTarEngine).StemOfstrips volume suffixes (jogo.part01.rar→jogo).tests/Fixtures/README.md).docs/archive-support.mdrecords the observed results.Tests (CI)
VolumeTests.Split_archive_opens_from_any_volume_and_extracts_everything(7z, RAR5, RAR4, old RAR names, spanned ZIP, plain ZIP split).VolumeTests.Missing_volume_is_reported_by_name_and_nothing_is_extracted(first 7z missing, last 7z/RAR5/RAR4 missing,.z01or.zipmissing, plain zip split tail).VolumeTests.Split_tar_gz_is_refused_instead_of_extracting_only_the_first_part.BatchExtractionJourneyTests.Marked_volumes_of_one_split_archive_are_extracted_once.No new UI; no manual checks needed.
Closes #65
🤖 Generated with Claude Code