Search for Folders with Size Parameters

English support forum

Moderators: white, sheep, Hacker, Stefan2

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

Search for Folders with Size Parameters

Post by *Alonzo Mosley » 2018-09-14, 16:30 UTC

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!

User avatar
Dalai
Power Member
Power Member
Posts: 6276
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Search for Folders with Size Parameters

Post by *Dalai » 2018-09-14, 16:36 UTC

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

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

Alonzo Mosley
Junior Member
Junior Member
Posts: 25
Joined: 2018-03-28, 20:13 UTC

Re: Search for Folders with Size Parameters

Post by *Alonzo Mosley » 2018-09-14, 18:03 UTC

Cleverly named plugin! Will give it a try - thanks!

Alonzo Mosley
Junior Member
Junior Member
Posts: 25
Joined: 2018-03-28, 20:13 UTC

Re: Search for Folders with Size Parameters

Post by *Alonzo Mosley » 2018-09-14, 18:31 UTC

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!

User avatar
Gral
Power Member
Power Member
Posts: 664
Joined: 2005-01-26, 15:12 UTC

Re: Search for Folders with Size Parameters

Post by *Gral » 2018-09-15, 05:08 UTC

Just guessing, maybe additional field:

Code: Select all

dirsizecalc | Contains Subdirectories | != | Yes

User avatar
tuska
Power Member
Power Member
Posts: 1259
Joined: 2007-05-21, 12:17 UTC

Re: Search for Folders with Size Parameters

Post by *tuska » 2018-09-15, 14:32 UTC

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: 25
Joined: 2018-03-28, 20:13 UTC

Re: Search for Folders with Size Parameters

Post by *Alonzo Mosley » 2018-09-15, 18:57 UTC

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

User avatar
tuska
Power Member
Power Member
Posts: 1259
Joined: 2007-05-21, 12:17 UTC

Re: Search for Folders with Size Parameters

Post by *tuska » 2018-09-16, 09:31 UTC

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:
https://ghisler.ch/board/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