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 ?
Searching the folders in which an extension is missing
Re: Searching the folders in which an extension is missing
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:
"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:
Re: Searching the folders in which an extension is missing
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!
Cheers!
Re: Searching the folders in which an extension is missing
To find folders that contain a jpg file and only jpg files, please try following search:
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$)
Code: Select all
child:jpg regex:child:^(?!.*\.jpg$)