In case anyone else comes here looking for how to exclude all subdirectories (ie. subfolders), as I just did, here's what I found works:
-<project root directory name, not path>/*/*
If the folder is named 'scripts', it'd be:
If there are two root folders foo and bar, and you only want to search through their files, but not the folders they contain, you'd use
I also tried -(foo|bar)/*/* but it didn't work. Anyone know if there's a shorter syntax that what I've got here?