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?
How to locate folders with a childfilecount:N of a child:<match> pattern?
Re: How to locate folders with a childfilecount:N of a child:<match> pattern?
Correct.It would seem that childfilecount: only counts _all_ folder content, and not just the results of the matching pattern.
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.
Re: How to locate folders with a childfilecount:N of a child:<match> pattern?
Thanks void. This general method will come in handy.