Forum Discussion

tk42's avatar
tk42
New Contributor III
7 years ago

Directory Browser match on file name with spaces

I have a file called “File With Spaces.csv” and am trying to create a GLOB pattern to match it in a Director Browser.

What should work does not work and what does work is not optimal in my opinion.

Simply setting the File Filter to the value: File With Spaces.csv
returns 0 documents.

Setting the filter to: File?With?Spaces.csv
returns 0 documents.

Setting the filter to: File*With*Spaces.csv
returns the 1 document.

The fact that it will not match the exact file name is perplexing.
The fact that ‘?’ has no effect is perplexing as well.
At least ‘*’ works, but I find that pattern problematic and should not be necessary.

I can find no where in the documentation that spaces require special handling.

Anyone know of solution that does not require the use of ‘*’ for this?

TK