Making a Stored Query non-recursive

I know this has got to be pretty simple, but for the life of me, and can't figure out how to do it.

I just discovered "Stored Queries" and they are a fantastic idea!

I created one that searches through 2 folders.

I have a query of "*.(config|txt)" and it works like I'd expect, only showing those matching files.

BUT

It matches recursively through the folders I've specified AND all their children.

In this case, I ONLY want it to search through the specific folders and no deeper.

Any idea how to make the filter non-recursive?

Do you mean an Opus Search (as search engine) or anything else?

I was just using the standard Opus wildcard search.

So my filter right now is *.(config|txt)

which +does+ work (it only shows files with a config or txt extension), but it finds ALL those file in the named folder and all it's subfolders, which is what I don't want.

Just not sure how to prevent the search from recursing.
i looked through the Opus Wildcard search as well as the regex search docs and didn't see anything about controlling recursion during a search.

Here's a screenshot

There could be other simpler ways, but this one should work:
=return (Match(ext,"txt|config","pr") and StrCmp("C:\Program Files (x86)\Worksoft\Certify\Client",path) == 0);

I take the path from your screenshot, change it if it's not the one you're actually using.

Interesting. That looks like scripting, which is cool. I'm just not sure where to put it.

Would that go in the "Query" definition for the Stored Query, or someplace else?

Yep.

Fantastic! That was the trick.
Thank you so much!