-
Notifications
You must be signed in to change notification settings - Fork 125
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
Recursive not working on Windows #170
Comments
I wonder if it's specific to using --recursive with wildcards. Which shell are you using? Some shells also do automatic expansion of wildcards which can cause interesting behaviors as well. |
Is it possible that an exit code is being thrown when it shouldn't? Just noticing that if I try and run on a structure like this from the
The system exits immediately stating there were no matches. Wondering if the wildcard is throwing an exit 1 when it should really be continuing when |
Using a test structure as follows
This behavior wouldn't be too bad if oxipng could ignore any files that don't have PNG headers and keep going, but if a file is passed without a png header the program will exit regardless of how many more files need to be checked. Fixing the wildcard issue won't fix this behavior fully as there are cases where files may be labeled .png but really be some other file. I've tried extending error handling to not exit on bad header data but my ability with rust is lacking. |
I got the same problem:
… and it don't tell me what's going wrong! |
Seems like the remaining issue might be windows specific. I'll see what I can do. |
Can reproduce on my Windows 10 machine |
The recursive option doesn't work and says failed to open file for reading.
Version is oxipng 2.2.0
This is the output
The text was updated successfully, but these errors were encountered: