Search Layer Limit

Discussion related to "Everything" 1.5.
Post Reply
jackao
Posts: 11
Joined: Mon Dec 30, 2024 11:31 pm

Search Layer Limit

Post by jackao »

Can everything limit the search layer of the child folder?
I want to do a search at the root folder(A) and not looking into W|Z|X. I want the search to stop at the third layer.
I know I can do a search and not search W and Z and X to stop it but that is just too much work sometimes

A\B\C\W
A\D\E\Z
A\F\G\X
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search Layer Limit

Post by therube »

parents: is one way.

volume:A\B\C\W

parents:5 (5, cause W is the 5th element in the path, including the volume)

c: desktop.ini parents:5


finds,
c:\a\b\c\w\desktop.ini
but not,
c:\a\b\c\w\6\desktop.ini
jackao
Posts: 11
Joined: Mon Dec 30, 2024 11:31 pm

Re: Search Layer Limit

Post by jackao »

"c: desktop.ini parents:5"
Is this a complete search syntax? why C: follow by space. Isn't that literally mean and.

I look for the parents: function but don't quite get it. I did it by regex.

Code: Select all

regex:Tools\\([^\\]+\\){0,1}[^\\]+\.(exe|msi|ps1|bat)$
Tools - the root folder for searching
\\ - literal "\" *path separator
[^\\]+ - whatever that is not "\" repeat from 1 to unlimited *Folder name
\\ - literal "\" *path separator
([^\\]+\\){0,1} - Folder name follow by path separator that repeat from 0 to 1. Can amend easily
\.(exe|msi|ps1|bat) - literal "." follow by either of the 4 string.
$ - make sure the extension name is the last string of the file name. To exclude folders name "*****.exe.config"
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Layer Limit

Post by void »

depth: might make this easier.

c:\path-to-a\ depth:<5


Adjust depth: depending on the depth of c:\path-to-a\

depth:
jackao
Posts: 11
Joined: Mon Dec 30, 2024 11:31 pm

Re: Search Layer Limit

Post by jackao »

thanks. that's what I need.
Post Reply