How to locate folders with a childfilecount:N of a child:<match> pattern?

General discussion related to "Everything".
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

How to locate folders with a childfilecount:N of a child:<match> pattern?

Post by raccoon »

It would seem that childfilecount: only counts _all_ folder content, and not just the results of the matching pattern.

Say I want to locate all folders that contain only 1 but not 2 .jpg files, my first instinct is:

`child:.jpg childfilecount:1`

But this is invalid, as it's not counting only the .jpg files, but all other the files within.

Are any solutions possible?
void
Developer
Posts: 15251
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to locate folders with a childfilecount:N of a child:<match> pattern?

Post by void »

It would seem that childfilecount: only counts _all_ folder content, and not just the results of the matching pattern.
Correct.
childfilecount: finds folders in the ENTIRE index with the specified number of files.

To find folders with exactly 1 jpg file, please try the following:
  • In Everything, type in the following search:
    ext:jpg
  • From the File menu, click Export....
  • Change Save as type to: EFU Everything File List.
  • Choose a filename and click Save.
  • From the File menu, click Open File List....
  • Select the file list you saved above and click Open.
  • Type in the following search:
    childfilecount:1
  • When you are finished with the results, close the file list:
  • From the File menu, click Close File List.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to locate folders with a childfilecount:N of a child:<match> pattern?

Post by raccoon »

Thanks void. This general method will come in handy.
Post Reply