-
Notifications
You must be signed in to change notification settings - Fork 124
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
Wildcard (*) fails if folder name contains square brackets ([ ]) #618
Comments
Hi @MarcG2 |
@MarcG2 Perhaps worth filing @ https://github.com/rust-lang/glob/issues similar to rust-lang/glob#142 &/or rust-lang/glob#132 ? |
That explains it. This is second time I've encountered a utility with the same issue. So I'm guessing it's a similar situation with the other one. @shssoichiro Alternatively, you could have Oxipng return a descriptive warning if pattern matching fails when brackets are used. |
Honestly I wouldn't know what to ask for. Does the library need additional options? Or is this something that should be handled by the end application? |
@MarcG2 Similar to how you reported this issue & like the linked issues, if you post at the |
We probably just shouldn't have the square bracket pattern syntax, since afaik that's not normal/expected on Windows. However, as already noted, the Perhaps oxipng could escape square brackets itself before passing the path to |
I'm using the Windows 64bit version.
I get a failed to open file for reading error if using this command.
"F:\oxipng-9.1.1-x86_64-pc-windows-msvc\oxipng.exe" --dir "F:\Bug test Out" --strip safe -o 2 --verbose "F:\[a]bug test\*.png"
If I ensure the folder name doesn't contain square brackets, the command works as expected.
"F:\oxipng-9.1.1-x86_64-pc-windows-msvc\oxipng.exe" --dir "F:\Bug test Out" --strip safe -o 2 --verbose "F:\bug test\*.png"
The text was updated successfully, but these errors were encountered: