Search drive c: for folder(s) only by name - Relevance

(imported topic written by johnC91)

I am trying to see if a folder exists that starts with the letters “xyz” anywhere on drive C: but not find files that start with “xyz”. I created a custom analyses with the following relevance. The relevance finds files and folders that start with “xyz” but I can’t find a way to search for folders only starting with “xyz”.

exist(descendants of folder “C:”) whose (name of it starts with “xyz”)

(imported comment written by Lee Wei)

Hi johnC,

“descendants of folder” returns a file object, “descendant folders of folder” will return the folder object that you want.

This should work:

exists descendant folders whose (name of it starts with "xyz") of folder "C:\"

However, note that this is an expensive and long running query that you probably don’t want to have running continuously.

There are 2 ways to get around it, one is to change the “Evaluate every” property to be infrequent, and the other is to put this is a Task that you specify when to run.

Sorry I just gloss over these options, so let us know if it does not make sense.

Lee Wei