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]: nice api for using different output names during decompressing #123

Open
1 task done
RScherzer opened this issue Feb 17, 2023 · 1 comment
Open
1 task done
Assignees
Milestone

Comments

@RScherzer
Copy link

Feature description

While compression already has the options to modify the final name in the archive

std::map< std::string, std::string > files_map = {
    { "path/to/file1.jpg", "alias/path/file1.jpg" },
    { "path/to/file2.pdf", "alias/path/file2.pdf" }
};
compressor.compress( files_map, "output_archive2.zip" );

it would be great to have a feature for decompressing files directly to a newly chosen name

In 7zip SDK speech this could be achieved by having an ArchiveExtractCallback's GetStream function which opens the ISequentialOutStream for the file with the new name instead of the old name. You could also add code before that which recursively creates the possibly needed not existing subfolders for the new file.

Additional context

No response

Code of Conduct

@rikyoz rikyoz added this to the v4.1 milestone Feb 26, 2023
@rikyoz
Copy link
Owner

rikyoz commented Feb 26, 2023

it would be great to have a feature for decompressing files directly to a newly chosen name

Yeah, I think it would be a useful feature.
I'll add it to the next v4.1.
Thank you for the suggestion! 🙏

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

No branches or pull requests

2 participants