How to find all bottom-level folders that only contain a specific file type?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
haha_sound
Posts: 3
Joined: Tue Oct 05, 2021 1:27 am

How to find all bottom-level folders that only contain a specific file type?

Post by haha_sound »

Greetings,

This is such an awesome tool! I'm not sure if the dev is active on this forum, but thank you!

I have a folder of music files that is organized into albums. There are often duplicates of albums that are nested at varying levels, and varying bitrates. I'd like to keep the highest bitrate versions only. Here's an example:

Code: Select all

music
    artist1
        album1 <-- Keep this
            track1.flac
            track2.flac
            track3.flac
    archive
        1987
            artist1
                album1 <-- Delete this
                    track1.mp3
                    track2.mp3
                    track3.mp3
Is there a search string such that:
  • The results are only the album folders, i.e. only folders whose contents are solely FLAC files, with no subfolders (so I can select-all and copy directly from the search results pane)
  • FLAC files are explicitly targeted (e.g.
    child:"ext:flac"
    would be cool, but it doesn't work. I also tried
    child:flac
    but it gives results with MP3s.)
If I'm better off using another tool, please let me know! I've tried a few like dupeguru, but I've gotten further with Everything.

Many thanks in advance,
h.s.
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find all bottom-level folders that only contain a specific file type?

Post by void »

Please try the following search:

child:*.flac

child:
haha_sound
Posts: 3
Joined: Tue Oct 05, 2021 1:27 am

Re: How to find all bottom-level folders that only contain a specific file type?

Post by haha_sound »

LOL I JUST SAW THIS in the forum sticky, inspecting the results currently.
haha_sound
Posts: 3
Joined: Tue Oct 05, 2021 1:27 am

Re: How to find all bottom-level folders that only contain a specific file type?

Post by haha_sound »

It did include some top-level folders, but I sorted by path -- works for me! Thank you so much!!
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to find all bottom-level folders that only contain a specific file type?

Post by raccoon »

Another way of describing a bottom-level folder, is to say "any folder that doesn't contain a folder within it."

try adding childfoldercount:0 to your query.

re viewtopic.php?f=5&t=9419&p=33291
Post Reply