WIMLIB_EXTRACT_FLAG_GLOB_PATHS affects non-glob paths
Posted: Wed Feb 28, 2018 4:26 pm
wimlib_extract_pathlist() and wimlib_extract_paths() are both capable of bulk extraction of files from wim.
With them, I want these behaviors in my application:
- Glob paths (with *, ?) not being matched is allowed.
- When non-glob paths (without *, ?) are not matched, error should be raised.
But it seems wimlib treats non-glob path as globs when WIMLIB_EXTRACT_FLAG_GLOB_PATHS is specified.
So if I turn on WIMLIB_EXTRACT_FLAG_STRICT_GLOB, wimlib will ignore error even if non-glob path did not match.
Does it intended?
If not, can options for these behaviors be added to wimlib?
Test Sample
For test, please use this ListFile with LZX.wim.
There are no /Z.txt and *.exe in LZX.wim, and these are my test result.
When WIMLIB_EXTRACT_FLAG_STRICT_GLOB is not set on wimlib_extract_pathlist(), no errors are raised.
When WIMLIB_EXTRACT_FLAG_STRICT_GLOB is set on wimlib_extract_pathlist(), error is raised on *.exe.
What I want is to make wimlib report error not on *.exe, but on /Z.txt.
With them, I want these behaviors in my application:
- Glob paths (with *, ?) not being matched is allowed.
- When non-glob paths (without *, ?) are not matched, error should be raised.
But it seems wimlib treats non-glob path as globs when WIMLIB_EXTRACT_FLAG_GLOB_PATHS is specified.
So if I turn on WIMLIB_EXTRACT_FLAG_STRICT_GLOB, wimlib will ignore error even if non-glob path did not match.
Does it intended?
If not, can options for these behaviors be added to wimlib?
Test Sample
For test, please use this ListFile with LZX.wim.
Code: Select all
/ABDE
*.exe
/Z.txt
When WIMLIB_EXTRACT_FLAG_STRICT_GLOB is not set on wimlib_extract_pathlist(), no errors are raised.
When WIMLIB_EXTRACT_FLAG_STRICT_GLOB is set on wimlib_extract_pathlist(), error is raised on *.exe.
What I want is to make wimlib report error not on *.exe, but on /Z.txt.