Is there a modifier similar to "path:" but which does not include the filename?
I wish to find files in paths with a certain string in the path name.
Is there a "path:" modifier which doesn't match the filename?
-
burgundy
- Posts: 290
- Joined: Fri Oct 16, 2009 9:50 am
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
-
burgundy
- Posts: 290
- Joined: Fri Oct 16, 2009 9:50 am
Re: Is there a "path:" modifier which doesn't match the filename?
Thank you. Similarly is there a modifier which finds a string only in the file name?
I have tried "file:" and "files-only:" but some results match the path proper and not the file name.
I have tried "file:" and "files-only:" but some results match the path proper and not the file name.
-
NotNull
- Posts: 5961
- Joined: Wed May 24, 2017 9:22 pm
Re: Is there a "path:" modifier which doesn't match the filename?
If you have Match Path enabled (under the Search menu), the full filename (including path) will be searched.
To prevent this, uncheck MAtch Path or use the no-path: search modifier.
will find c:\folder\abc.txt
will not find c:\abc\file.txt
To prevent this, uncheck MAtch Path or use the no-path: search modifier.
Code: Select all
nopath:abcwill not find c:\abc\file.txt
-
therube
- Posts: 5727
- Joined: Thu Sep 03, 2009 6:48 pm
Re: Is there a "path:" modifier which doesn't match the filename?
"pathpart:"
Heh. So I read about pathpart:, & I was like, neat.
And last night, that made me think, there are times I could use a "namepart:", so I tried that - to no avail.
I do also use name:, but name: still doesn't handle all my needs.
And then it was mentioned, "If you have Match Path enabled" (;-)) - which I always do, & nopath:.
(And then one turns a little bit, & says, ah, duh!, I know that already, don't I. A little reminder helps
.)
Heh. So I read about pathpart:, & I was like, neat.
And last night, that made me think, there are times I could use a "namepart:", so I tried that - to no avail.
I do also use name:, but name: still doesn't handle all my needs.
And then it was mentioned, "If you have Match Path enabled" (;-)) - which I always do, & nopath:.
(And then one turns a little bit, & says, ah, duh!, I know that already, don't I. A little reminder helps