bit7z icon indicating copy to clipboard operation
bit7z copied to clipboard

[Feature Request]: nice api for using different output names during decompressing

Open RScherzer opened this issue 1 year ago • 1 comments

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

RScherzer avatar Feb 17 '23 16:02 RScherzer