adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.29k stars 482 forks source link

Is it possible to uncompress a gzip file which is concatenated from multiple gzip files? #871

Open alex-b-123 opened 2 months ago

alex-b-123 commented 2 months ago

It looks like gunzip, winrar and 7zip all can uncompress multiple gzip files concatenated into one (as this link shows https://stackoverflow.com/a/15660705/19437625), however I'm only getting the first file out of the archive, when I uncompress. I'm callingGZipArchive.Open() followed by using WriteToFile() on the one entry in the file.

adamhathcock commented 2 months ago

it looks like a manual concatention of files. I'm sure you'd have to write some code when the stream ends.

Could be a useful feature