Page 1 of 1

[implemented] Show empty dirsize as 0 and not <DIR>

Posted: 2017-10-08, 02:58 UTC
by petermad
When dirsize calculation is evoked (Shift+Alt+Enter or cm_CountDirContent) then I suggest to show the size of empty dirs as 0 in stead of <DIR> so it is visible that the dirsize for the folder has been calculated.

Maye show 0 when there is nothing in the dir and show -0 or (0) when there are only empty directories and/or zero-length files in the dir.

Posted: 2017-10-08, 10:21 UTC
by ghisler(Author)
Unfortunately this isn't possible - TC stores default value as 0, which is displayed as <dir>.

Posted: 2017-10-08, 18:35 UTC
by petermad
Then when the result of cm_CountDirContent for a dir results in 0, display something else than 0 and <DIR>.

Posted: 2017-10-09, 08:24 UTC
by Lefteous
I guess many users who don't use the DirSizeCalc plugin would appreciate a similar solution:

- After calculation show more details for 0 byte size folders: No files (just subfolders), 0 byte files only oder really empty.
- Distinguish different types of reparse points
- Maybe even inform the user about side effects of the calculation (things like folder contains junctions for which the size wasn't calculated).

Posted: 2017-10-10, 17:43 UTC
by Guillaume
ghisler(Author) wrote:Unfortunately this isn't possible - TC stores default value as 0, which is displayed as <dir>.
So, default value -1?

Posted: 2017-10-11, 21:24 UTC
by ghisler(Author)
In principle, yes - but the size is used in various places, e.g. to calculate the total size, and I fear that I will forget the one or other location and get wrong values...

Posted: 2017-10-11, 23:51 UTC
by Guillaume
Maybe it's less of a hassle the other way around: -1 only for dir size calculation, which will present "0" instead of "<dir>"? It's a workaround, but it does save you trouble and it saves people the trouble of thinking "have I pressed space on this directory already and deselected it afterwards, or not?" (apart from the feedback on Alt+Shift+Enter as OP stated).

Re: Show empty dirsize as 0 and not <DIR>

Posted: 2023-05-25, 13:34 UTC
by petermad
Bump*