You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find a way to set the override mode. Is there any way?
Unfortunately, there's no direct way to set it, at least for now.
I think that OverwriteMode::RenameExist might be achievable by using BitFileExtractor's fileCallback:
ext.setFileCallback( []( const string& path ) {
auto full_path = output_path + "/" + path;
// You might emulate OverwriteMode::RenameExist by checking if full_path exists,// and in case, rename it.// The file callback is called before the overwrite code.
}
I will definitely implement such a feature as soon as possible, but it will require quite a bit of refactoring of the library's internal code, so I'm not sure it will make it into the stable v4.0.
Anyway, thank you for your suggestion!
Feature description
Hi !
english is not good. excuse me 😅.
bit7z version:
v4.0.0-beta
my code:
my zip structure
unzip result (files with the same name will be overwritten)
i find in resource code (fileextractcallback.cpp => getOutStream)
7zip commands (7z.exe e -ao[a | s | t | u ])
when I use this library, I can't find a way to set the override mode. Is there any way?
Thanks! 👍💕
Additional context
Code of Conduct
The text was updated successfully, but these errors were encountered: