DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: Does any folder in tree have more than one file in it?  (Read 28,077 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: Does any folder in tree have more than one file in it?
« Reply #25 on: March 03, 2019, 06:52 PM »
Wonder if you can 'and' in a not 0 file count also?
Yep, this works
Code
"C:\base folder\" !childfilecount:1 !childfilecount:0
but nkormanik found the shorter
Code
"C:\base folder\" childfilecount:>1

Sooo many additional options as well.  Never knew.
Indeed, Everything just keeps on giving. It is in that sweet spot of having a simple looking UI yet is very rich in features and syntax options. I actually didn't know about the childfilecount: command until I read this thread and thought "I bet Everything has some way or other to do this".  :)

I noticed there is a difference between
Code
"C:\base folder\" !childfilecount:1 !childfilecount:0
and
Code
"C:\base folder\" childfilecount:>1

The former lists both the matching folders and their files, but the latter only lists the folders. This means that there are two different workflows to choose among
1. find the list of matching folders and then manually open matching folders in Explorer one at a time and delete unwanted files.
2. find the list of all *files* in matching folders, sort the Everything list by Path and manually delete unwanted files one at a time directly in Everything.
For workflow 2 the search could be one of these
Code
"C:\base folder\" !childfilecount:1 !childfilecount:0 file:
Code
"C:\base folder\" !childfilecount:1 !childfilecount:0 ext:mp3
Code
"C:\base folder\" !childfilecount:1 !childfilecount:0 audio:
« Last Edit: March 03, 2019, 09:00 PM by Nod5 »

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
Re: Does any folder in tree have more than one file in it?
« Reply #26 on: March 04, 2019, 09:55 AM »
A minor update (fixed a problem with the prune button (disabled or not when no results are found) and with the height of the string + button gadgets at the top)...

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Does any folder in tree have more than one file in it?
« Reply #27 on: March 04, 2019, 10:07 AM »
Had a fool around with EBO for something to do.

2019-03-04 20_57_02-EBO.png
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Does any folder in tree have more than one file in it?
« Reply #28 on: March 05, 2019, 04:12 PM »
It's wonderful to see these threads with a bunch of people helping each other and coding and sharing stuff  :up:

Don't forget if you appreciate the coders, send them some donationcredits!

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: Does any folder in tree have more than one file in it?
« Reply #29 on: March 05, 2019, 11:53 PM »
The OP mentioned TreeSize.  From idle curiosity, I entered it into AlternativeTo and found WizTree, which claims to be the fastest of its type and certainly seems like it, much faster than WinDirStat, but doesn't address the more-than-one-file question.

Also, FolderSizes, which apparently can:
Quote
You can now search for folders based upon the number of files and/or subfolders they contain. This criterion can be based upon the immediate file/folder count, or the aggregate file/folder count (which includes counts from nested subfolders).
But it's a heavy-duty tool - 27MB and $60.

Nir Sofer's SearchMyFiles can show number of files per folder in Summary mode, but you'd still have to eyeball the report, or post-process it.

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 563
Re: Does any folder in tree have more than one file in it?
« Reply #30 on: March 28, 2019, 09:27 AM »
@4wd  EBO.  Beautifully accomplished.  Terrific little program.  Amazing skills.

Thank you!

@highend01  Absolutely.  After using 4wd's EBO to make sure what's about to be zapped, time for MTOF to do the pruning.

Great work!

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: Does any folder in tree have more than one file in it?
« Reply #31 on: March 28, 2019, 03:45 PM »
A quick note on what the application is with the present request: Music Collection Maintenance.

$35 https://www.bolidesoft.com/audiocomparer/

Quote from: Bolide Audio Comparer
Find and Remove Duplicate Songs Automatically

Audio Comparer is a simple tool that will help you to automatically find and remove duplicate songs in your collection. The program works with Windows Vista/7/8/10 and can compare audio files by their actual sound data. Audio Comparer listens to your audio files and remembers all of them. After that, it compares how they sound and places similar-sounding files into groups where you can select which file you want to delete and which to leave on your hard drive. This way our program can even detect duplicates with wrong or missed tags filled. Also, Audio Comparer is able to detect the same song stored in different audio formats (for example, FLAC and MP3).

Also: https://alternativeto.net/software/audio-comparer/

Original address: https://www.donationcoder.com/forum/index.php?topic=47222.0