I would like to search for files and folders in multiple locations, but restrict the search to not include subfolders
. So I tried the following:
Code: Select all
Unfortunately, that does not return the correct results. I've also tried without the grouping characters (i.e., "<>") which also doesn't work.
Can the parent:
function take multiple paths?
Also, I notice that the parent:
function doesn't work with single folder names (e.g., parent:"Music\"). I found the following example as an alternative:
I've tried it and it works. It seems to work even with subfolders 3 or 4 levels deep. By looking at the code, it seems that it would only restrict 2 levels deep. Does that code explicitly restrict the search to not include all
subfolders, no matter the depth?