Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: zstd compression #273

Open
1 task done
RScherzer opened this issue Feb 5, 2025 · 2 comments
Open
1 task done

[Feature Request]: zstd compression #273

RScherzer opened this issue Feb 5, 2025 · 2 comments
Assignees

Comments

@RScherzer
Copy link

Feature description

Hi,

not really a request but I wonder how I can specify (if possible) zstd compression method when creating a new archive or adding a file to an existing one. Opening, reading, extracting etc a zipfile with zstd compressed files works already fine (at least why quick tests show) but when I add a new file to such an archive, it automatically adds it as deflate. There is not zstd enum in BitCompressionMethod, so I wonder if this was simply forgotten or not supported at all.

Additional context

No response

Code of Conduct

@rikyoz
Copy link
Owner

rikyoz commented Feb 5, 2025

Hi!
As far as I know, and please correct me if I'm wrong, 7-Zip does not currently support creating archives using the zstd compression method.
It has recently added support for reading/extracting archives using the zstd compression method, and even .zst archives. And I'm going to add support for the .zst archive format, possibly in the next v4.0.10, since I've had the patch ready for quite some time and forgot to push it.
But to create such archives, or to use the zstd compression method in other archive formats like 7z or zip, we'll have to wait for 7-Zip to add support.

@RScherzer
Copy link
Author

Oh yes, you're right. I guess I was confused by the fact that zstd is also some years old now and most likely I read about 7z forks who add the support. Let's cross fingers that it gets officially supported soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants