Searching directories only

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
CB-Crew
Posts: 5
Joined: Tue Mar 07, 2023 4:53 pm

Searching directories only

Post by CB-Crew »

Hello!
How can I find directories using a wildcard. For example all directories that contain the word "users" by typing '*users*'. I have tried it this way but no correct result comes up.

I don't want to search files that contain the search term, but only directories.

Thank you
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Searching directories only

Post by NotNull »

To show the content of all directories with "user" in the name :

Code: Select all

\*user*\
To show all directorynames containing "user" :

Code: Select all

folder:user

Or did you mean something else?
CB-Crew
Posts: 5
Joined: Tue Mar 07, 2023 4:53 pm

Re: Searching directories only

Post by CB-Crew »

Thank you very much...
folder:user works fine. :D

but: \*user*\ seems not to work...

whatever 'wildcarded' combination I enter, I get no result

for example ther is a dirctory called "_AS_Photo\_2023\2023-00-00_AA-Photo-InBox" i can not find it with \*2023*\
what do I wrong?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching directories only

Post by void »

To find user anywhere in the full path, use the path: search modifier:

path:user



If you want to find user in the path part only, please try the following search:

*user*\*

(for Everything 1.5, try: pathpart:user or *user*\** )
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Searching directories only

Post by NotNull »

CB-Crew wrote: Thu Apr 13, 2023 10:23 pm what do I wrong?
Nothing! This was my mistake.

There is an option Match whole filename when using wildcards which I thought is disabled by default. It isn't.
With that setting disabled, you will indeed get zero results. Enabled would have given you the expected results.
It is a mistake I (still!) make every other week or so, so you just caught me at the wrong moment :D

The solution @void provided works regardless what this option is set to.
Post Reply