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

Removing entry from 7z archive does not preserve compression method on repack #340

Open
A1trdX opened this issue Jul 9, 2023 · 2 comments

Comments

@A1trdX
Copy link

A1trdX commented Jul 9, 2023

When you create a 7zip archive with ZStandard method and then remove entry, the other entries are repacked with LZMA method automatically. I expect them to be repacked with the same method.

image
image

7-Zip 22.01 ZS v1.5.5 R3 (x64)
2023-06-18

@mcmilk
Copy link
Owner

mcmilk commented Aug 27, 2023

I have no idea o how to do this.
What if two or more other methods got used on that archive before ... what method should I use then?

@A1trdX
Copy link
Author

A1trdX commented Sep 29, 2023

The same method as the original one for the specified entry. If the method is not supported, then fallback to the default one. I think the logic here is straightforward.

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