-
-
Notifications
You must be signed in to change notification settings - Fork 117
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]: BitOutputArchive::addFiles( const tstring& in_dir... should take options.only_files from an argument instead of 'false' #226
Comments
Hi!
The problem I have with this change is that it would make the name of the method But I think the library should make it possible to do something like what you want, no doubt. So I think the best way would be to add a method like There is already
Just to be sure: after an Anyway, I'll add the new method to the library, possibly in the upcoming v4.0.8 of the library. Thanks for pointing this out! |
Thank you very much for a prompt reply, explanation, and the solution. I just wanted to let you know that your library is very good and the work you are doing is really making a difference in the world. |
You're welcome! I just pushed a commit to the
Thank you for your kind words and support! I'm glad to hear that this library is making a positive impact. |
Thanks! I'll take the 4.0.8 after you release it. |
Shouldn't the same functionality be extended to the classes that wrap the In other words, if I only wanted to use the |
This is automatically done for
|
Feature description
I observe that the 7z file created by using
BitOutputArchive::addFiles( const tstring& in_dir...
api, only captures the files under thein_dir
. It does not capture the sub-dirs in thein_dir
for e.g. if thein_dir
were to have the below structure:in_dir\FileA.txt
in_dir\subDir
in_dir\subDir\FileB.txt
when I call
BitArchiveReader.items()
, it reports only 2 items -FileA.txt
andFileB.txt
it does not report thesubDir
.This is because the
options.files_only
is hardcoded totrue
. When changed via debugger tofalse
, the reader reports thesubDir
as well.Would it be possible to take it from an argument?
I tried setting
mArchiveCreator.retainDirectories()
but it did not have any effect.Env: Win10.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: