How to search for folders which contain ONLY images?

General discussion related to "Everything".
Post Reply
phantomc
Posts: 1
Joined: Wed Aug 07, 2024 3:36 pm

How to search for folders which contain ONLY images?

Post by phantomc »

How could I search for folders which contain only JPG images, and no other file types or subfolders? Or to put it another way, how can I exclude all folders which contain other file types or subfolders from my search results?

I've started with this search: child:ext:jpg
which does finds folders of JPGs, but of course the results also contain many other file types.


Currently using Everything 1.5.0.1383a
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search for folders which contain ONLY images?

Post by void »

childfilecount: !child:<!*.jpg>



child:<!*.jpg> = match any children that are not jpgs.
! = NOT
childfilecount: is needed as
!child:<!.jpg>
will match empty folders.



Please try a negative look ahead regex search:

childfilecount: !regex:child:^(?!.*\.jpg$)
Post Reply