topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 5:10 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
Re: Does any folder in tree have more than one file in it?
« Reply #25 on: March 03, 2019, 12:52 PM »
Wonder if you can 'and' in a not 0 file count also?
Yep, this works
"C:\base folder\" !childfilecount:1 !childfilecount:0
but nkormanik found the shorter
"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
"C:\base folder\" !childfilecount:1 !childfilecount:0
and
"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
"C:\base folder\" !childfilecount:1 !childfilecount:0 file:
"C:\base folder\" !childfilecount:1 !childfilecount:0 ext:mp3
"C:\base folder\" !childfilecount:1 !childfilecount:0 audio:
« Last Edit: March 03, 2019, 03:00 PM by Nod5 »

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
    • View Profile
    • Donate to Member
Re: Does any folder in tree have more than one file in it?
« Reply #26 on: March 04, 2019, 03: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

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

2019-03-04 20_57_02-EBO.pngDoes any folder in tree have more than one file in it?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Does any folder in tree have more than one file in it?
« Reply #28 on: March 05, 2019, 10:12 AM »
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
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: Does any folder in tree have more than one file in it?
« Reply #29 on: March 05, 2019, 05: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:
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: 553
    • View Profile
    • Donate to Member
Re: Does any folder in tree have more than one file in it?
« Reply #30 on: March 28, 2019, 04: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,566
    • View Profile
    • Donate to Member
Re: Does any folder in tree have more than one file in it?
« Reply #31 on: March 28, 2019, 10:45 AM »
A quick note on what the application is with the present request: Music Collection Maintenance.

$35 https://www.bolideso...t.com/audiocomparer/

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).
-Bolide Audio Comparer

Also: https://alternativet...ware/audio-comparer/