Folder path between "FOLDER" issue

Found a bug in "Everything"? report it here
Post Reply
hansolocambo
Posts: 7
Joined: Mon Oct 09, 2017 9:30 am

Folder path between "FOLDER" issue

Post by hansolocambo »

Let's say I have two paths :

C:\textures\Pants
C:\textures\Pants Strings

If I want to search for all files with the word : blue, into ONLY the folder Pants, then I'd write as a search, the path between quotes, followed by a word blue :
"C:\textures\Pants" blue

My understanding was that the last " would clearly limits the search to that specified path. But nope. If there are also files named blue in the folder "Pants Strings", they'll also appear. The result of my search by alphabetical order becomes :

(PATHS)
Pants.....................................C:\textures\
Pants Strings............................C:\textures\
(FILES)
Blue XX...................................C:\textures\Pants
Blue YY...................................C:\textures\Pants
Blue ZZ...................................C:\textures\Pants
Blue AA...................................C:\textures\Pants Strings
Blue BB...................................C:\textures\Pants Strings
Blue CC...................................C:\textures\Pants Strings

I ended up many times moving the wrong files if not careful because the path between quotes is not respected as I understand it would be. And all paths that begin with Pants and their content is also listed.
Results that should not ! appear :
(PATHS)
Pants Strings............................C:\textures\
(FILES)
Blue AA...................................C:\textures\Pants Strings
Blue BB...................................C:\textures\Pants Strings
Blue CC...................................C:\textures\Pants Strings


If it's a "normal" behavior, it doesn't feel logical. What search should I write to avoid this behavior ? Should I add some kind of exclude option in the search ?

Please advise.
Thanks.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Folder path between "FOLDER" issue

Post by NotNull »

"C:\textures\Pants"
.. searches for files and folders with C:\textures\Pants in it's name.
It will find "C:\textures\Pants" as well as "C:\textures\Pants Strings"


If you want to find "blue" files/folders in the "C:\textures\Pants" folder only, try the following seaarch:

Code: Select all

"C:\textures\Pants\" blue
Note the extra backslash (\) at the end of the folder name.



A similar "problem" happens with "c:\program files" and "c:\program files (x86)".
Here you need to add the \ too to 'get rid of' the "c:\program files (x86)" results: "c:\program files\"
hansolocambo
Posts: 7
Joined: Mon Oct 09, 2017 9:30 am

Re: Folder path between "FOLDER" issue

Post by hansolocambo »

NotNull wrote: Thu Sep 08, 2022 7:49 pm Note the extra backslash (\) at the end of the folder name.

Wow excellent. This thing has annoyed me so many times that I feel stupid for not figuring it out sooner. Solution sounds obvious now and definitely makes sense.
Thanks so much for your help (b^-^)b
Post Reply