Dir size with information and DiskUsage

Hello, i have one issue to clarfied.

If i open a folder with information, i see a different size to the size information with the tool DiskUsage.

Which size is correct and why is it different?

Regards Lorglas

1 Like

They also report a different numbers of files. I guess that some are in fact items but yes it is a bit confusing and doesn’t explain size differences.

I guess it can be due to skipping non visible files and directories and/or using that exact bytes size of files vs actual size on disk taken by files.

Hi, hidden files can’t be, because if i look with ls -all, i see all files in the dir and there isn’t hidden files.

Maybe an issue with the blocksize?

They are measuring different stuff. This is from experimentation, not from reading the code: DiskUsage gives me the sum of the “logical” size of the files (that is, a file of 12 bytes and another of 2715 yields 2727), while Tracker Information gives on-disk usage (that is, a folder with just an empty file yields 2 KiB because that’s the block size in my disk).

2 Likes

Inthis case, perhaps tooltips explaining how that is calculated would avoid confusions?
I mean in informations window the detail would be nice to have “xxx Mb in folder + yyy MB in subfolders” In DiskUsage, it could just indicate that it is logical space used.

Well, in fact I consider DiskUsage showing logical sizes instead of actual sizes on disk as a functional default: it’s name is DiskUsage, not PurelyLogicalSizeDiskUsage.

:wink: