Extract splited 7z archive #487

Closed
opened 2026-01-29 22:12:50 +00:00 by claunia · 6 comments
Owner

Originally created by @tinohager on GitHub (Nov 26, 2021).

Hi i have a splited 7z archive with 4 files. I found no example for this case. Is this posible with this library? Is an example available?
Thank you for the great library.

var files = new string[]
{
    "archive.7z.001",
    "archive.7z.002",
    "archive.7z.003",
    "archive.7z.004"
}

foreach (var file in files)
{
    using var sevenZipArchive = SevenZipArchive.Open(file, new ReaderOptions
    {
        Password = "1234abcd"
    });
}

I would have looked for something like this

var files = new string[]
{
    "archive.7z.001",
    "archive.7z.002",
    "archive.7z.003",
    "archive.7z.004"
}

using var sevenZipArchive = SevenZipArchive.Open(files, new ReaderOptions
{
     Password = "1234abcd"
});
Originally created by @tinohager on GitHub (Nov 26, 2021). Hi i have a splited 7z archive with 4 files. I found no example for this case. Is this posible with this library? Is an example available? Thank you for the great library. ```cs var files = new string[] { "archive.7z.001", "archive.7z.002", "archive.7z.003", "archive.7z.004" } foreach (var file in files) { using var sevenZipArchive = SevenZipArchive.Open(file, new ReaderOptions { Password = "1234abcd" }); } ``` I would have looked for something like this ``` var files = new string[] { "archive.7z.001", "archive.7z.002", "archive.7z.003", "archive.7z.004" } using var sevenZipArchive = SevenZipArchive.Open(files, new ReaderOptions { Password = "1234abcd" }); ```
claunia added the questionup for grabs labels 2026-01-29 22:12:50 +00:00
Author
Owner

@adamhathcock commented on GitHub (Nov 29, 2021):

Support for split 7z archives isn't implemented.

@adamhathcock commented on GitHub (Nov 29, 2021): Support for split 7z archives isn't implemented.
Author
Owner

@marcussacana commented on GitHub (Feb 8, 2022):

I managed to read multi-volume 7z Files creating a stream that merge multiple streams into a single stream, worked to me at least, check it: https://github.com/marcussacana/DirectPackageInstaller/blob/main/IO/MergedStream.cs
bab0b672ab/Compression/SharpComp.cs (L62-L86)

@marcussacana commented on GitHub (Feb 8, 2022): I managed to read multi-volume 7z Files creating a stream that merge multiple streams into a single stream, worked to me at least, check it: https://github.com/marcussacana/DirectPackageInstaller/blob/main/IO/MergedStream.cs https://github.com/marcussacana/DirectPackageInstaller/blob/bab0b672ab34f0936f297cd48fb372e588b15296/Compression/SharpComp.cs#L62-L86
Author
Owner

@Nanook commented on GitHub (Apr 21, 2022):

I've submitted #658 that resolves this issue for zip, 7zip, rar, gzip and tar

@Nanook commented on GitHub (Apr 21, 2022): I've submitted #658 that resolves this issue for zip, 7zip, rar, gzip and tar
Author
Owner

@marcussacana commented on GitHub (Apr 21, 2022):

I've submitted #658 that resolves this issue for zip, 7zip, rar, gzip and tar

even zip?! this I loved it!
Works with zip64 as well?

@marcussacana commented on GitHub (Apr 21, 2022): > I've submitted #658 that resolves this issue for zip, 7zip, rar, gzip and tar even zip?! this I loved it! Works with zip64 as well?
Author
Owner

@adamhathcock commented on GitHub (Apr 21, 2022):

Looks like it's split extraction for just about everything. I'm surprised more changes weren't required.

Thanks @Nanook for the changes. If you want to be more of a regular contributor/maintainer, we should talk!

@adamhathcock commented on GitHub (Apr 21, 2022): Looks like it's split extraction for just about everything. I'm surprised more changes weren't required. Thanks @Nanook for the changes. If you want to be more of a regular contributor/maintainer, we should talk!
Author
Owner

@Nanook commented on GitHub (Apr 21, 2022):

Yes I'd be interested. I have other commitments, but I use the project a lot and there are other fixes I'd like to make too. Thanks

@Nanook commented on GitHub (Apr 21, 2022): Yes I'd be interested. I have other commitments, but I use the project a lot and there are other fixes I'd like to make too. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#487