SetLevel in ZipFile
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start in src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs at ZipFile.GetOutputStream and inspect the hard-coded compression level of 9. Define the requested ZipFile compression-level API and verify that GetOutputStream uses the configured value when adding an entry to an existing archive.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
When I use ZipOutputStream, I can set compression level. When I want to add an entry to an existing zip archive I should use ZipFile and can't set compression level.
Describe the solution you'd like
I suggest to add CompressionLevel property or SetLevel() method to ZipFile and use it in the ZipFile.GetOutputStream instead of the hard coded 9:
https://github.com/icsharpcode/SharpZipLib/blob/ff2d7c30bdb2474d507f001bc555405e9f02a0bb/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs#L2754
Describe alternatives you've considered
Alternatively I want an ability to add an entry to an exitsing archive using ZipOutputStream
Tags
ZIP
Additional context
No response
- Dominant language
- C#
- Stars
- 3.9k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from icsharpcode/SharpZipLib
-
*no response* bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
icsharpcode/SharpZipLib#905 · 1 comment ·
-
bug bzip2
Difficulty 4/5 3-5 days Newbie friendliness 45/100
icsharpcode/SharpZipLib#904 ·
-
*no response* bug
Difficulty 4/5 3-5 days Newbie friendliness 32/100
icsharpcode/SharpZipLib#901 · 1 comment ·
-
*no response* bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
icsharpcode/SharpZipLib#894 · 1 comment ·
-
*no response* enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
icsharpcode/SharpZipLib#893 ·
All issues in icsharpcode/SharpZipLib
Similar issues
-
[Feat] 조합 영역 구분선 개선 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100