Page 1 of 1

Find folders only in root of disk drives, and exclude subfolders?

Posted: Wed Apr 05, 2017 12:10 am
by SuperDude
I am trying to search for only folder names that are in the "root directory" of disk drives, while excluding all subfolders and files.

For example, if I have the following folders:

C:\Folder 1
C:\Program Files\Folder 1
D:\Folder 1
D:\Everything\Folder 1
E:\Folder 1
F:\Folder 1

I only want the folder names colored in blue to be displayed in the search results. I want all files to be excluded from the search results list, as well as all subfolders of the :\Folder 1 folders.

I've had limited success using path: and folder: switches. Any help would be appreciated. Thank you.

Re: Find folders only in root of disk drives, and exclude subfolders?

Posted: Wed Apr 05, 2017 1:31 am
by froggie
Try

Code: Select all

<parent:c:|parent:d:> folder:    FOO 

Re: Find folders only in root of disk drives, and exclude subfolders?

Posted: Wed Apr 05, 2017 2:59 am
by void
parents:1 should also work:
parents:1 folder:

Re: Find folders only in root of disk drives, and exclude subfolders?

Posted: Wed Apr 05, 2017 12:13 pm
by SuperDude
Thank you so much :D

Re: Find folders only in root of disk drives, and exclude subfolders?

Posted: Wed Apr 05, 2017 5:43 pm
by Stamimail
Currently the syntax is parent:<path>
<path> parent: for example won't give results.

I'm trying to suggest ways to make it more intuitive.

I think adding a function like:
<path> nosubfolders: (means exclude subfolders)
will be more intuitive.

or
subfolders:
!subfolders:

Also to consideration:

!folder: ==> nofolders:
!file: ==> nofiles:

Re: Find folders only in root of disk drives, and exclude subfolders?

Posted: Thu Apr 06, 2017 11:07 am
by void
I've added nosubfolders: to Everything 865b.

The nosubfolders: search function behaves the same as the parent: or infolder: search function.
That is, you must specify the path immediately after nosubfolders:

For example, find files and folders in D:\Music and ignore subfolders, search for:
nosubfolders:d:\music

nosubfolders: without a specified path is too ambiguous.
!folder: ==> nofolders:
!file: ==> nofiles:
Added to Everything 865b.

Re: Find folders only in root of disk drives, and exclude subfolders?

Posted: Thu Apr 06, 2017 3:02 pm
by Stamimail
nosubfolders: without a specified path is too ambiguous.
I can understand it, but it makes it really less intuitive.
nosubfolders: like a filter function would be much better.

Maybe to filter the results by (like) sorting the results by Path, and then Everything will get the most Parent Folders Paths, and then Everything will show only those results have one of the most Parent Folders Paths.