openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

Recurse switch does't result in recursing for glob expressions under Linux #67

Closed bitsgalore closed 9 years ago

bitsgalore commented 9 years ago

Under Linux, running this command:

jpylyzer -r ./jpylyzer-test-files/

Result: all files in directory and its subdirectories are analyzed.

Doing this:

jpylyzer -r ./jpylyzer-test-files/*.jp2

Now matching files in subdirectories are not analyzed. Under Windows both commands work as expected.

anjackson commented 9 years ago

The shell is expanding the glob, so the command being run will passed the list of matching files. This should do what you intend:

jpylyzer -r "./jpylyzer-test-files/*.jp2"

However, TBH, I would not have had the same expectation as you, and would not consider the Linux behaviour to be buggy.

bitsgalore commented 9 years ago

You're right, I now remember I've seen this before, I had completely forgotten about that. Phew!

Thanks!