hollasch / pathmatch

A directory/filename pattern match utility for the Windows command shell
MIT License
6 stars 3 forks source link

Modifying the path in place clobbers multiple wildcarded directory specifications #3

Open hollasch opened 11 years ago

hollasch commented 11 years ago

For example

pathmatch  c:/srh/work/imagingnw/web/root/sportsphotography/200*/?*/pages/*001.html

will end up matching .../200/ instead. Seems like I need to make copies of the pattern to work with, rather than trying to be fancy and modify a single copy.

Also, I need to add code to handle the special case of a literal pattern, and bail directory enumeration at the first positive match.