Possible to search : Find folder with more than X files ?

General discussion related to "Everything".
Post Reply
shodan
Posts: 30
Joined: Wed Mar 17, 2021 8:40 am

Possible to search : Find folder with more than X files ?

Post by shodan »

Hi,

I would like to find folder than contain more than X files.

And also, folder, including all subfolders, that contain more than X files.

Is this possible ?
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Possible to search : Find folder with more than X files ?

Post by void »

childfilecount:>x

For example, to find folders with more than 1000 files, include the following in your search:

childfilecount:>1000


And also, folder, including all subfolders, that contain more than X files.
Everything 1.5 will have support for:

descendantfilecount:>1000

descendant-file-count:
shodan
Posts: 30
Joined: Wed Mar 17, 2021 8:40 am

Re: Possible to search : Find folder with more than X files ?

Post by shodan »

Wow, I keep getting surprised by the capabilities of this software !

That search should be in "Really Useful Set of Bookmark Searches"

Folder that contain more than 100 files
childfilecount:>100

but also

Folder that contain no files
childfilecount:0

I found this returns folder that contains no files, but contain folders'

Folder that contain no files, including subfolders
descendantfilecount:0

Is there a way to search straigh empty folders ? (descendantfilecount:0 returns folder that contain empty folders)

thanks !
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Possible to search : Find folder with more than X files ?

Post by void »

To search for folders with no subfolders and no files, include the following in your search:

empty:



which is the same as:

childcount:0
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Possible to search : Find folder with more than X files ?

Post by therube »

Folder that contain no files
childfilecount:0

I found this returns folder that contains no files, but contain folders'
Likewise this,
size:0 folder:

And in that regard:
Note the difference between

empty:

and

size:0 folder:
Empty folders are really empty?
shodan
Posts: 30
Joined: Wed Mar 17, 2021 8:40 am

Re: Possible to search : Find folder with more than X files ?

Post by shodan »

I think having included, self descriptive aliases that spell out to proper search command.

Also could a search term ask the user a question like, What is the value of "X" ?
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Possible to search : Find folder with more than X files ?

Post by void »

Search -> Advanced Search -> Folders with this many files.

Otherwise, you will need to specify the count with childfilecount:
Post Reply