Problem with multiple file masks
Posted: Sun May 02, 2010 8:25 pm
I've used multiple file masks for years, and I just found out you can have exclusion masks. That's excellent! I did notice something a little odd, though.
I wanted to show all files that end with _x.sql but didn't contain _comp_. So, I thought I'd use this mask list:
*_x.sql,!*_comp_*
Unfortunately, V shows every file in the folder except for those with a mask of *_comp_*.sql. This includes files ending in .bak and files containing _comp_ that didn't end in _x.sql.
But if I reverse the order of the masks:
!*_comp_*,*_x.sql
V does exactly what I expect.
I'm okay with doing that, I just didn't expect it. Should the exclusions always come first?
I wanted to show all files that end with _x.sql but didn't contain _comp_. So, I thought I'd use this mask list:
*_x.sql,!*_comp_*
Unfortunately, V shows every file in the folder except for those with a mask of *_comp_*.sql. This includes files ending in .bak and files containing _comp_ that didn't end in _x.sql.
But if I reverse the order of the masks:
!*_comp_*,*_x.sql
V does exactly what I expect.
I'm okay with doing that, I just didn't expect it. Should the exclusions always come first?