only display deepest children folder?

Discussion related to "Everything" 1.5.
Post Reply
Shooter3k
Posts: 42
Joined: Tue Sep 07, 2021 10:56 pm

only display deepest children folder?

Post by Shooter3k »

When using the filter similar to the following: dupe:name size:>100MB

Is it possible to filter results so that instead of this:
C:\test1\
C:\test1\test2\
C:\test1\test2\test3\
D:\test3\

you'd only get the children folders? since the "C:\test1\" and "C:\test1\test2\" are showing because they contain only the children folder and just happen to be the same size:
C:\test1\test2\test3\
D:\test3\
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: only display deepest children folder?

Post by therube »

Not sure I'm following?
Is there a more specific search that you are actually using?
As in, why would C:\test1\, C:\test1\test2\ turn up if they're not matching, dupe:name size:>100MB ?

Are you looking for folders themselves, or only files, or both?
!folder:
Shooter3k
Posts: 42
Joined: Tue Sep 07, 2021 10:56 pm

Re: only display deepest children folder?

Post by Shooter3k »

imagine this:

folder size folder name
100MB C:\test1\
100MB C:\test1\test2\
100MB C:\test1\test2\test3
100MB D:\test3\

the reason that "C:\test1\" and "C:\test1\test2\" and "C:\test1\test2\test3" all show 100MB is because "C:\test1\test2\test3" is 100MB

showing the parent folders of "C:\test1\" and "C:\test1\test2\" is redundant
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: only display deepest children folder?

Post by void »

Please try including the following in your search:

childfilecount:


This will find folders where there is at least one file.
This might not give the expected results if your folder has files and subfolders with files.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: only display deepest children folder?

Post by NotNull »

Code: Select all

dupe:name  size:>100MB  !<child-file-count:0  child-folder-count:1>
Shooter3k
Posts: 42
Joined: Tue Sep 07, 2021 10:56 pm

Re: only display deepest children folder?

Post by Shooter3k »

NotNull wrote: Wed Oct 15, 2025 11:17 am

Code: Select all

dupe:name  size:>100MB  !<child-file-count:0  child-folder-count:1>
This syntax is exactly what I was looking for and worked perfectly! Thank you!!
Post Reply