ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE. Software > Post New Requests Here

Does any folder in tree have more than one file in it?

<< < (6/7) > >>

Wonder if you can 'and' in a not 0 file count also?
-4wd (March 02, 2019, 05:23 PM)
--- End quote ---
Yep, this works

--- ---"C:\base folder\" !childfilecount:1 !childfilecount:0but nkormanik found the shorter

--- ---"C:\base folder\" childfilecount:>1
Sooo many additional options as well.  Never knew.
-nkormanik (March 02, 2019, 11:50 PM)
--- End quote ---
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:0and

--- ---"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:

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)...

Had a fool around with EBO for something to do.

Does any folder in tree have more than one file in it?

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!

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).
--- End quote ---
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.


[0] Message Index

[#] Next page

[*] Previous page

Go to full version