[Solved] Search for paths with redundant folders
[Solved] Search for paths with redundant folders
Is there any way to search for paths containing redundant folders?
like ... \Pictures\Pictures\ ...
like ... \Pictures\Pictures\ ...
Last edited by w64bit on Wed Feb 28, 2024 7:31 pm, edited 1 time in total.
Re: Search for paths with redundant folders
Code: Select all
folder:regex:\\([^\\]*)\\\1$
Re: [Solved] Search for paths with redundant folders
Thank you very much!
Re: [Solved] Search for paths with redundant folders
You're welcome!
Was in a hurry so no time for further explanation at that time. Or to test it...
folder:regex:\\([^\\]*)\\\1$
([^\\]*) = Put parent foldername in capture group 1
\1 = Use the result of capturegroup 1 (=parent foldername)
So this expands to pattern \parentfoldername\parentfoldername.
Folders that match this pattern will be shown.
BTW: the same result without using regular expressions:
Was in a hurry so no time for further explanation at that time. Or to test it...
folder:regex:\\([^\\]*)\\\1$
([^\\]*) = Put parent foldername in capture group 1
\1 = Use the result of capturegroup 1 (=parent foldername)
So this expands to pattern \parentfoldername\parentfoldername.
Folders that match this pattern will be shown.
BTW: the same result without using regular expressions:
Code: Select all
folder:exact:parent-name:$name:
Re: [Solved] Search for paths with redundant folders
folder:exact:parent-name:$name:
gave NO results? Regex folder:regex:\\([^\\]*)\\\1$ gave lots?
Version 1.5.0.1368a (x64)
gave NO results? Regex folder:regex:\\([^\\]*)\\\1$ gave lots?
Version 1.5.0.1368a (x64)
Re: [Solved] Search for paths with redundant folders
Please try the following search:folder:exact:parent-name:$name:
$name:==$parentname:
Re: [Solved] Search for paths with redundant folders
Something changed between 1367a and 1368a?
1368a does indeed return zero results, whereas 1367a does give the same results as the regex one.
1368a does indeed return zero results, whereas 1367a does give the same results as the regex one.
Be aware that is does a case sensitive comparison ("Test\test" will not be reported) and will report files too.$name:==$parentname:
Re: [Solved] Search for paths with redundant folders
Thanks for testing NotNull,
Everything 1.5.0.1369a fixes an issue with passing parameters to search functions.
1368 made a change to fix a memory leak when the search parameter wasn't used.
Unfortunately, this "fix" made Everything ignore the parameter passed to most search functions.
Everything 1369a fixes the issue.
folder:exact:parent-name:$name:
should now work as expected.
Everything 1.5.0.1369a fixes an issue with passing parameters to search functions.
1368 made a change to fix a memory leak when the search parameter wasn't used.
Unfortunately, this "fix" made Everything ignore the parameter passed to most search functions.
Everything 1369a fixes the issue.
folder:exact:parent-name:$name:
should now work as expected.
Re: [Solved] Search for paths with redundant folders
folder:exact:parent-name:$name:
Works for me now as Void indicated?
Works for me now as Void indicated?
Re: [Solved] Search for paths with redundant folders
Version 1.5.0.1370a (x64)
folder:exact:parent-name:$name
Now Broken again no results?
folder:exact:parent-name:$name
Now Broken again no results?
Re: [Solved] Search for paths with redundant folders
Please make sure you use a trailing : after name
folder:exact:parent-name:$name:
folder:exact:parent-name:$name:
Re: [Solved] Search for paths with redundant folders
folder:exact:parent-name:$name:
My cut and paste error. Still NO results whereas v1369a did?
... Cancel that. I had the wrong filter on, switched to Everything and all good, Sorry
My cut and paste error. Still NO results whereas v1369a did?
... Cancel that. I had the wrong filter on, switched to Everything and all good, Sorry
Re: [Solved] Search for paths with redundant folders
If you are still have trouble with this search, could you please send a debug log:folder:exact:parent-name:$name:
gives no results.
- Clear your search box.
- In Everything, from the Tools menu, under the Debug submenu, check Start Debug Logging.
- Change your search to:
folder:exact:parent-name:$name: - In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging.
The Everything Debug Log will open in Notepad. - Please save this file to the Desktop and send to support@voidtools.com
Privacy
I am aware of a crash when searching for:
exact:parentname:
I am working on a fix.