Finding Folders that do not contain music files ?
-
- Posts: 91
- Joined: Fri May 28, 2021 7:55 am
Finding Folders that do not contain music files ?
Hi All,
This question applies to Everything 1.5 1296a(x64)
I am cleaning up 1000 music folders,
There will be nested folders to some depth on this project.
And I need to find folders that do not contain music.
I want to get them in a list so I can batch file delete them.
This is what I tried!
It did not work!
I tried it with filter audio and everything.. not sure if that would have made a difference?
F:\DATA\MUSIC\ !child:*.mp3 !child:*.flac !child:*.ape !child:*.m4a
Does anyone know what the string command is to achieve this
Thank You.
This question applies to Everything 1.5 1296a(x64)
I am cleaning up 1000 music folders,
There will be nested folders to some depth on this project.
And I need to find folders that do not contain music.
I want to get them in a list so I can batch file delete them.
This is what I tried!
It did not work!
I tried it with filter audio and everything.. not sure if that would have made a difference?
F:\DATA\MUSIC\ !child:*.mp3 !child:*.flac !child:*.ape !child:*.m4a
Does anyone know what the string command is to achieve this
Thank You.
Re: Finding Folders that do not contain music files ?
I think what you want is the following negated or-group syntax.
folder: !<child:*.mp3|child:*.flac|child:*.ape|child:*.m4a>
If you want to make sure the results are folders that contain at least one file in them, not just other folders, add this too.
childfilecount:>0
folder: !<child:*.mp3|child:*.flac|child:*.ape|child:*.m4a>
If you want to make sure the results are folders that contain at least one file in them, not just other folders, add this too.
childfilecount:>0
Re: Finding Folders that do not contain music files ?
Be careful with that!raccoon wrote: ↑Sat Jan 22, 2022 9:33 pm I think what you want is the following negated or-group syntax.
folder: !<child:*.mp3|child:*.flac|child:*.ape|child:*.m4a>
If you want to make sure the results are folders that contain at least one file in them, not just other folders, add this too.
childfilecount:>0
It will also report folders that have deeper subfolders.
For example:
"c:\Band\Year - Album\" contains your music files and c:\band\ only contains folders. Now C:\Band will be reported too, which would delete all your music !!
Add childfoldercount:0 to your search
-
- Posts: 91
- Joined: Fri May 28, 2021 7:55 am
Re: Finding Folders that do not contain music files ?
Thank You, David,
your suggestion worked
perfectly, it was nice, simple and uncomplicated to execute.
raccoon & NotNull
Thank you, for your suggestions.
they where much appreciated.
your suggestion worked
perfectly, it was nice, simple and uncomplicated to execute.
raccoon & NotNull
Thank you, for your suggestions.
they where much appreciated.
Re: Finding Folders that do not contain music files ?
Sorry to reawaken this old thread - I searched up this thread trying to find this solution and when I tried using the search parameter that void gave on my music folder I'm actually getting the opposite result - only showing files that ARE music files. When I remove the ! (not) I get nothing at all.
Did this functionality change sometime in the past two years?
Did this functionality change sometime in the past two years?
Re: Finding Folders that do not contain music files ?
First of all: what Everything version?
The query provided --- F:\DATA\MUSIC\ !descendant-file:<*.mp3|*.flac|*.ape|*.m4a> -- will also show files.
Does the following one show all folders that do not contain music files below them?
The query provided --- F:\DATA\MUSIC\ !descendant-file:<*.mp3|*.flac|*.ape|*.m4a> -- will also show files.
Does the following one show all folders that do not contain music files below them?
Code: Select all
folder: "F:\DATA\MUSIC\" !descendant-file:<*.mp3|*.flac|*.ape|*.m4a>
Re: Finding Folders that do not contain music files ?
Thanks for quick reply!
I'm running the latest version posted at the website - 1.4.1.1024
I think I figured out what I needed to do, although I went a little less technical and just searched for anything in my "music" folder that didn't have a music file extension, sorted by extension and visually scanned the list for what I wanted to delete. I think I got tripped up by the semantics of the original request - find FOLDERS that do not contain music files. I just wanted to find anything that was not a music file among my music folders. So I think that original query did what it should have done, and did not display files that were in folders that also contained music files.
Thanks for the help! Still working my way through this tremendously powerful program!
I'm running the latest version posted at the website - 1.4.1.1024
I think I figured out what I needed to do, although I went a little less technical and just searched for anything in my "music" folder that didn't have a music file extension, sorted by extension and visually scanned the list for what I wanted to delete. I think I got tripped up by the semantics of the original request - find FOLDERS that do not contain music files. I just wanted to find anything that was not a music file among my music folders. So I think that original query did what it should have done, and did not display files that were in folders that also contained music files.
Thanks for the help! Still working my way through this tremendously powerful program!
Re: Finding Folders that do not contain music files ?
The descendant: search function is available in Everything 1.5, not in version 1.4.
(You posted in the "Everything 1.5 Alpha" forum )
Although version 1.5 is still labelled as an alpha version, it is very mature. You can run it side-by-side with version 1.4, but most regulars here are using 1.5 as their main version.
I would like to suggest to install 1.5 as it has many, many new features that you will probably like.
The descendant: function is only a minor one ...
(You posted in the "Everything 1.5 Alpha" forum )
Although version 1.5 is still labelled as an alpha version, it is very mature. You can run it side-by-side with version 1.4, but most regulars here are using 1.5 as their main version.
I would like to suggest to install 1.5 as it has many, many new features that you will probably like.
The descendant: function is only a minor one ...
Re: Finding Folders that do not contain music files ?
Doh! I'm really letting my noob flag fly here. Well I ought to have a better look around these forums and learn my way. I'll give 1.5 a try, thanks for the tip!NotNull wrote: ↑Thu Feb 01, 2024 7:31 pm The descendant: search function is available in Everything 1.5, not in version 1.4.
(You posted in the "Everything 1.5 Alpha" forum )
Although version 1.5 is still labelled as an alpha version, it is very mature. You can run it side-by-side with version 1.4, but most regulars here are using 1.5 as their main version.
I would like to suggest to install 1.5 as it has many, many new features that you will probably like.
The descendant: function is only a minor one ...
Re: Finding Folders that do not contain music files ?
Overlooked your question:
file: = show only files
! = NOT
audio: = a filter macro that expands to ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm
Or, if you only have a couple of music file extensions:
For that you don't need version 1.5:I just wanted to find anything that was not a music file among my music folders.
Code: Select all
file: "C:\your music\folder\" !audio:
! = NOT
audio: = a filter macro that expands to ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm
Or, if you only have a couple of music file extensions:
Code: Select all
file: "C:\your music\folder\" !ext:mp3;flac;ape
Re: Finding Folders that do not contain music files ?
You're not alone. The number of times I gave an "1.5 answer" in the "1.4 forum" ....
See also my post above that actually should answer your question.