Folders: tag also mistakenly showing files

Found a bug in "Everything"? report it here
Post Reply
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Folders: tag also mistakenly showing files

Post by anmac1789 »

Everything does not show folders only when using folders: tag for 2 paths such as 1. "C:\Users\user\Desktop\explorer import\iphone se 1st gen" and
2. "C:\Users\user\Desktop\iphone se"

In other words, everything also shows the files in addition to the folders when using folders: tag even thought the intention is to only show folders
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Folders: tag also mistakenly showing files

Post by void »

What is your exact search?

Please try the following search:

folder: "C:\Users\user\Desktop\explorer import\iphone se 1st gen\"|"C:\Users\user\Desktop\iphone se\"

Note the space after folder:
Everything will treat this search as:
folders-only AND ("C:\Users\user\Desktop\explorer import\iphone se 1st gen\" OR "C:\Users\user\Desktop\iphone se\")

Without the space, the folder search modifier is only applied to the first search term.



The following search will also work:

folder:<"C:\Users\user\Desktop\explorer import\iphone se 1st gen\"|"C:\Users\user\Desktop\iphone se\">

The folder: search modified is applied to all the terms in the < > group.
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: Folders: tag also mistakenly showing files

Post by anmac1789 »

Okay, thats strange using folders: in front of the search paths works but when a path has "iphone se" in it, it also shows a excel file named "iphone se folder locations.xlsx" because it contains the word "iphone se". I have unchecked ignore punctuation and unchecked ignore white-space and it still shows the excel file
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Folders: tag also mistakenly showing files

Post by raccoon »

The presence of a trailing backslash matters.

C:\blah

blah can be a filename or a folder name in C root.

C:\blah\

blah can only be a folder name and never a filename.

Going back to the folders: verb. It only applies to the segment of your search query as @void explained above. Please play super close attention to your uses of the space character, the pipe character, and the angle brackets characters. These are syntactically meaningful to the extreme. Also take note of your Options -> General -> Search -> Operator precedence: setting, as this changes how spaces and pipes are treated in priority to one another.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Folders: tag also mistakenly showing files

Post by NotNull »

As @void asked:
void wrote: Sun May 22, 2022 9:19 am What is your exact search?
Without that, helping you gets tricky ...
(please use the code tags (the [</>] button) when posting to prevent the loss of information)
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: Folders: tag also mistakenly showing files

Post by anmac1789 »

ummm...the exact seach will give away my username and such so I just used "user" but those paths are pretty much exactly what is on my desktop
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Folders: tag also mistakenly showing files

Post by NotNull »

Replacing your actual username with "user" is perfectly fine. Even better! (privacy is important)
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Folders: tag also mistakenly showing files

Post by void »

Please use double quotes (") to escape any spaces:

"C:\Users\user\Desktop\explorer import\iphone se 1st gen\"
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: Folders: tag also mistakenly showing files

Post by anmac1789 »

Thank you, it seems to be working now after defaulting settings for literal operators and putting files: and folders: at the beginning of the search paths
Post Reply