mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #931] [MERGED] Added ArgumentException to Archive.Open implementations #1355
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/931
Author: @SimonCahill
Created: 7/21/2025
Status: ✅ Merged
Merged: 7/22/2025
Merged by: @adamhathcock
Base:
master← Head:feat/add-throw-on-unseekable-stream📝 Commits (4)
a88390aAdded ArgumentException which is thrown when a non-seekable Stream instance is passedd810f8dReverted back; I don't know how this file changedc0ae319Reverted debug change5bdd39eMerge branch 'master' into feat/add-throw-on-unseekable-stream📊 Changes
6 files changed (+31 additions, -1 deletions)
View changed files
📝
src/SharpCompress/Archives/GZip/GZipArchive.cs(+6 -0)📝
src/SharpCompress/Archives/Rar/RarArchive.cs(+6 -0)📝
src/SharpCompress/Archives/SevenZip/SevenZipArchive.cs(+6 -0)📝
src/SharpCompress/Archives/Tar/TarArchive.cs(+6 -0)📝
src/SharpCompress/Archives/Zip/ZipArchive.cs(+6 -0)📝
src/SharpCompress/packages.lock.json(+1 -1)📄 Description
This minor change affects the
Openmethods of each Archive type.The change is only a condition, determining whether or not the
Streamis seekable, and throws anArgumentExceptionif that's the case.I'd though of implementing this, too, but @Morilli gave me the final motivation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.