Searching the folders in which an extension is missing

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Wazaz
Posts: 3
Joined: Thu Mar 04, 2021 9:16 am

Searching the folders in which an extension is missing

Post by Wazaz » Thu Mar 04, 2021 9:33 am

I want to search every folders, in a specified folder, that doesn't have a certain type of file in it

Imagine I have a folder c:\Songs and in it I have tons of differents folder with different names.
Some of these folders have a .mp3 file in it, some others don't.
I want to search all those folders whom doesn't have a .mp3 folder in it

How can I do ?

void
Site Admin
Posts: 6453
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching the folders in which an extension is missing

Post by void » Thu Mar 04, 2021 9:35 am

To find folders in a certain folder that do not contain any mp3 files:

"d:\my songs folder\" !child:.mp3 folder:

where d:\my songs folder is your songs folder
! = NOT
child:<search> = match folders that contain a file with <search> in the filename.
folder: = limit results to folders only.

If you are not interested in subfolders, please try the following search:
parent:"d:\my songs folder" !child:.mp3 folder:


child:

p2k21
Posts: 1
Joined: Thu Mar 04, 2021 12:46 pm

Re: Searching the folders in which an extension is missing

Post by p2k21 » Thu Mar 04, 2021 12:49 pm

Always wondered if there was an exclusive search option for child? Display only folders which have a certain filetype and no other filetype (so if a folder has .jpgs and .mp4s it won't be shown on a search for folders containing .jpgs). Of course you can do child:*.jpg !child:*.mp4 but a way to exclude all other filetypes would be nice (if it's not already available?).

Cheers!

void
Site Admin
Posts: 6453
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching the folders in which an extension is missing

Post by void » Thu Mar 04, 2021 11:16 pm

To find folders that contain a jpg file and only jpg files, please try following search:

Code: Select all

child:jpg !regex:child:^(?!.*\.jpg$)
To find folders that contain a jpg file and some other type of file, please try following search:

Code: Select all

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

Post Reply