Search for Folders with Size Parameters

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Alonzo Mosley
Junior Member
Junior Member
Posts: 61
Joined: 2018-03-28, 20:13 UTC

Search for Folders with Size Parameters

Post by *Alonzo Mosley »

I am sure I am circling this in the documentation, but I can't find it. Probably staring straight at it.

I would like to scour my hard drive for (sub)directories that are smaller than a certain size, and/or contain only one or two files.

I've been playing with the tc plugin, but I don't think that's it.

Advice always appreciated.

Thanks!
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Search for Folders with Size Parameters

Post by *Dalai »

You need a plugin like DirSizeCalc to calculate the sizes of directories.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Alonzo Mosley
Junior Member
Junior Member
Posts: 61
Joined: 2018-03-28, 20:13 UTC

Re: Search for Folders with Size Parameters

Post by *Alonzo Mosley »

Cleverly named plugin! Will give it a try - thanks!
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
Alonzo Mosley
Junior Member
Junior Member
Posts: 61
Joined: 2018-03-28, 20:13 UTC

Re: Search for Folders with Size Parameters

Post by *Alonzo Mosley »

Super cool. Thank you.

One more question. I have some directories that have a single subdirectory that has a single subdirectory that has a single file. So if I search for:
disizecalc | File Count | <= | 1
I'm getting:

[d:\directory]
[d:\directory\subdirectory]
[d:\directory\subdirectory\subsub\]
[d:\directory\subdirectory\subsub\file.txt]

Is there a way to limit the results to just give me the lower-most level?

Thanks again!
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Search for Folders with Size Parameters

Post by *Gral »

Just guessing, maybe additional field:

Code: Select all

dirsizecalc | Contains Subdirectories | != | Yes
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: Search for Folders with Size Parameters

Post by *tuska »

Alonzo Mosley wrote: 2018-09-14, 18:31 UTC Is there a way to limit the results to just give me the lower-most level?
Yes, when using "Everything" and TC with parameter: parents:<count>
---------------------------------------------------------------------------------------------------------------------------------
SEARCH directly IN "EVERYTHING": Enter the following in the input line...

Example

Code: Select all

"D:\Data\" parents:3 size:<100kb childfilecount:2
Path in quotation marks! Note blank spaces!
In this case I would recommend to check "Index file size" under "Tools"-"Options..."-"Indexes" in "Everything".

Explanations:
(Main link: https://www.voidtools.com/support/everything/searching/)

Code: Select all

"Path"			 Path in quotation marks, e.g. "D:\Data"
parents:<count>		 Search for files and folders with the specified folder depth
size:<size>		 Search for files with the specified size in bytes;
size[kb|mb|gb]		 http://www.voidtools.com/support/everything/searching/#size_syntax				
tiny, small, medium,..	 http://www.voidtools.com/support/everything/searching/#size_constants
childfilecount:<count>	 Search for folders that contain the specified number of files
childfoldercount:<count> Search for folders that contain the specified number of subfolders
---------------------------------------------------------------------------------------------------------------------------------

SEARCH in TC:
In the search window (ALT+F7 or ALT+Shift+F7) of TC, set/enter the following:
- [] 'Everything'
- Search for: ed:parents:3 size:<100kb childfilecount:2 (… example!)
- Search in subdirectories: "all (unlimited depth)" - leave unchanged!

---------------------------------------------------------------------------------------------------------------------------------
Windows 10 Pro (x64) Version 1803 (OS Build 17134.285)
TC 9.21a - 64 bit | Everything - Version 1.4.1.914 (x64)
Alonzo Mosley
Junior Member
Junior Member
Posts: 61
Joined: 2018-03-28, 20:13 UTC

Re: Search for Folders with Size Parameters

Post by *Alonzo Mosley »

OMG thanks. WIll def give that a try. And here I was convinced it would be totally intuitive and I'd feel like an idiot for not cracking that on my own!

Thank you
Dan: You're gonna need to get someone to fix my computer.
Kim: What's wrong with it?
Dan: It's in several pieces on my floor.
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: Search for Folders with Size Parameters

Post by *tuska »

Alonzo Mosley wrote: 2018-09-15, 18:57 UTC Will def give that a try.
Then you could probably be interested in this topic before you set it up for the first time:
viewtopic.php?p=346372#p346372

Here is an explanation of the parameters ed: or ev: in Total Commander:
https://www.voidtools.com/forum/viewtopic.php?p=20711#p20711

Regards
Karl

TC 9.21a - 32 bit + 64 bit | Everything - Version 1.4.1.914 (x64) (portable)
Post Reply