mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-08 21:21:57 +00:00
[PR #986] [MERGED] Support CompressionType.None for uncompressed 7z files #1403
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/986
Author: @Copilot
Created: 10/27/2025
Status: ✅ Merged
Merged: 10/27/2025
Merged by: @adamhathcock
Base:
master← Head:copilot/fix-compressiontype-none-bug📝 Commits (4)
fc672daInitial plan2241e27Initial exploration: Understanding the issuef869712Add support for CompressionType.None for uncompressed 7z files588d176Final verification - all tests pass📊 Changes
4 files changed (+24 additions, -3 deletions)
View changed files
📝
src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs(+2 -0)📝
src/SharpCompress/packages.lock.json(+3 -3)📝
tests/SharpCompress.Test/SevenZip/SevenZipArchiveTests.cs(+19 -0)➕
tests/TestArchives/Archives/7Zip.Copy.7z(+0 -0)📄 Description
Accessing the
CompressionTypeproperty on entries from uncompressed 7z archives throwsInvalidFormatException, despite extraction working correctly.Changes
SevenZipFilePart.csfor uncompressed method IDCompressionType.Nonefor K_COPY method7Zip.Copy.7zarchive and 3 unit testsExample
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.