Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oiiotool: better handling of wildcards that match no files (#4627)
When you use frame or view wildcards, for example: oiiotool foo.%04d.tif -o bar.%04d.exr we noticed that if NO files matched, no iteration would occur. You would get this output: ``` $ oiiotool foo.%04d.tif -o bar.%04d.exr oiiotool WARNING : oiiotool produced no output. Did you forget -o? ``` But maybe this is not helpful and it should be some kind of error to ask for a match and not get one? Or at least give a more clear explanation of what happened. This PR detects the case where there is no match of the wildcard at all, warns about that, and then tries interpreting the command line literally (no wildcard expansion). So now the output is ``` $ oiiotool foo.%04d.tif -o bar.%04d.exr oiiotool WARNING : No frame number or views matched the wildcards oiiotool ERROR: read : File does not exist: "foo.%04d.tif" Full command line was: > oiiotool foo.%04d.tif -o bar.%04d.exr ``` Closes #4623 Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information