DirSizeCalc 1.21 (content plug-in)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

DirSizeCalc 1.21 (content plug-in)

Post by *Lefteous »

This thread is about the latest stable version of DirSizeCalc (1.21). Version 2 is currently in development. It is discussed here:
http://ghisler.ch/board/viewtopic.php?p=121774#121774


DirSizeCalc 1.21 has been released:

Code: Select all

DirSizeCalc 1.21
----------------

DirSizeCalc is a Content plugin for Total Commander.


Plugin description
------------------

DirSizeCalc counts the size of all files in a directory and displays the result. The calculation is done in background. This enables you to continue work while the calculation is in progress. 
If you use one of the "on demand" fields press the SPACE key on your keyboard to start the calculation. The "background" fields will immediately start the calculation when you enter the directory.
In addition some other related fields are provided.


Field descriptions
------------------

Size			File size
Compressed Size		Compressed Size is the file size when the compressed attribute is set. This field is only available on Windows NT based systems.
Directory Count		Count of all subdirectories in a directory.
File Count		Count of all files in a directory.
Empty			Retrieves if a directory neither subdirectories nor files.
Contains files		Retrieves if a directory contains any files.
Contains subdirectories Retrieves if a directory contains subdirectories.

1.21
- FIXED		Executing file operations on directories wasn't possible in some cases after the field "Contains files" has been used.
- FIXED		Units had been shown for fields which are not able to display file sizes.

1.20
- ADDED		All fields can now be calculated in background or on demand.
- ADDED		No more limits on formatting and sorting user-defined units enabled through Plugin interface enhancements.
- ADDED		Plugin interface enhancements are now used to enable displaying of placeholders. They are shown until the calculation has been completed.
- ADDED		New fields "Contains files" and "Contains Subdirectories" added.
DirSizeCalc 1.21 documentation (English)

DirSizeCalc 1.21 documentation (German)

DirSizeCalc 1.21 Download
Last edited by Lefteous on 2008-02-21, 19:09 UTC, edited 26 times in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Very useful, thanks. :)

Icfu
This account is for sale
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2icfu
[OT] Welcome back icfu!
I switched to Linux, bye and thanks for all the fish!
User avatar
Stitscher
Power Member
Power Member
Posts: 1058
Joined: 2004-02-17, 12:34 UTC
Location: Hamburg, Germany

Post by *Stitscher »

Thanks, great plugin.

Flo
B@rndH
Member
Member
Posts: 133
Joined: 2005-01-20, 10:46 UTC
Location: Germany

Post by *B@rndH »

Thanks! Really great! Even on an USB1.1-stick real fast! :)

One question/hint/request: the command [=dirsizecalc.Größe (Hintergrund)] (sorry about the german command text, I hope you understand it anyway) lists the sizes properly. However, the list is justified to the left whereas the original size list is justified to the right which is appreciably easier to read. I wonder if you would be so kind to offer a right-justifiable solution alternatively? :oops:

Best wishes
B@rndH
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2B@rndH
In the configuration window for custom columns next to the width of the column there is an ALIGN field. You can set it to right or left.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2icfu
2Stitscher
2B@rndH
Thank you very much! :D

2B@rndH
However, the list is justified to the left whereas the original size list is justified to the right which is appreciably easier to read. I wonder if you would be so kind to offer a right-justifiable solution alternatively?
All values returned by my plugin should be right-aligned by default. Maybe you have changed that accidentically in "Custom Columns" configuration dialog?
www.lefteous.de/tc/images/dirsizecalc/dirsizecalc_alignment.png

BTW:
sorry about the german command text, I hope you understand it anyway
Yes I think so. You may open a thread in the German if you prefer.
B@rndH
Member
Member
Posts: 133
Joined: 2005-01-20, 10:46 UTC
Location: Germany

Post by *B@rndH »

*hmmpf* sorry! my fault! Of course you are right! I changed the column's content and forgot to adjust the alignment (that's what I meant by justi.... *grmpf*) :oops:
So, everythings fine now! Thanx a lot.

And: Thanks, no need for a German thread. The problem is solved and I do hope that more people understand my poor English than a proper German text. :)

Thanks again and all the best!
B@rndH
Robert
Junior Member
Junior Member
Posts: 18
Joined: 2003-12-20, 16:53 UTC

Post by *Robert »

2Lefteous

I just figured out, that the size of the pagefile.sys is not shown on my notebook (XP Pro, 1 GB Ram). Maybe a bug?

Again, compliment for this great plugin.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Robert
I just figured out, that the size of the pagefile.sys is not shown on my notebook (XP Pro, 1 GB Ram). Maybe a bug?
This is a bug. Thank you for your report :-)
It will be fixed in the next version!
Again, compliment for this great plugin.
Thank you!
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Hi, your plugin is great and I use it instead of standard TC size for the third column now.

A suggestion : can you store in a cache the calculated size for each folder?
Like this, you'll need to recalculate only new folders and the folders whose date of modification have been changed.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Hi, your plugin is great and I use it instead of standard TC size for the third column now.
Thank you for using my plugin.
can you store in a cache the calculated size for each folder?
Like this, you'll need to recalculate only new folders and the folders whose date of modification have been changed.
Thank you for suggestion. I will take it on my wishlist.
baroncelli
Junior Member
Junior Member
Posts: 2
Joined: 2005-01-22, 23:06 UTC

Post by *baroncelli »

Uh... this does not seem to work for me. If I understand well I should be able to add a specific column for fields that should be filled with the result of the calculation, but the only fields I can choose are in the following groups:

tc
ShellDetails
Directory
File

am I missing something?
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2baroncelli
Hi,

It seems the plugin is not installed properly. Did you get any error messages during installation?
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Is it possible for your plugin to show the size of files in compresses archives as TC does?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
Post Reply