I'm trying to create a smart search which will match the top-level contents of all folders with a specific name. E.g., imagine I apply this search to "foo" in the following folder structure:
/foo/x /foo/y /bar/foo/z /bar/foo/z/a /bar/foo/b
I would expect to get
x y z b
I naively tried searching for "foo/*", but MacOS search doesn't support wildcards. Any ideas?