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

If you are experiencing problems with "Everything", post here for assistance.
SuperDude
Posts: 73
Joined: Thu Sep 25, 2014 7:57 pm

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

Postby SuperDude » Wed Apr 05, 2017 12:10 am

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.

froggie
Posts: 63
Joined: Wed Jun 12, 2013 10:43 pm

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

Postby froggie » Wed Apr 05, 2017 1:31 am

Try

Code: Select all

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

void
Site Admin
Posts: 3193
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Wed Apr 05, 2017 2:59 am

parents:1 should also work:
parents:1 folder:

SuperDude
Posts: 73
Joined: Thu Sep 25, 2014 7:57 pm

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

Postby SuperDude » Wed Apr 05, 2017 12:13 pm

Thank you so much :D

Stamimail
Posts: 264
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Wed Apr 05, 2017 5:43 pm

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:

void
Site Admin
Posts: 3193
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Thu Apr 06, 2017 11:07 am

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.

Stamimail
Posts: 264
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Thu Apr 06, 2017 3:02 pm

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.


Return to “Support”