topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • March 22, 2019, 06:53 AM
  • Proudly celebrating 13 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 1439 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 931
    • 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: 154
    • 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,163
    • 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: 39,186
    • 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,022
    • 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.