Page 1 of 1

ROX and Xfe show different "Directory Size"

Posted: Sun Aug 25, 2024 3:26 pm
by JusGellin

I noticed a difference between ROX-filer and Xfe file manager for showing directory sizes in properties.
I compared looking at /mnt/home/dpupbw6410.0.7frugal/dpupbw64save sizes.
ROX showed 260608000 bytes
Xfe showed 260796202 bytes
I also tried it using commandline du -sb /mnt/home/dpupbw6410.0.7frugal/dpupbw64save which gave 260796202 (the same as Xfe)

Is this a known thing or is there a reason for this happening?

Thanks


Re: ROX and Xfe show different "Directory Size"

Posted: Sun Aug 25, 2024 7:36 pm
by JakeSFR

It seems that ROX is showing size on disk, equivalent of du -sB1 some_dir.
Interestingly, in case of files, it shows "just" the size.
SpaceFM shows both:

SpaceFM_Size.gif
SpaceFM_Size.gif (33.77 KiB) Viewed 438 times

Greetings!


Re: ROX and Xfe show different "Directory Size"

Posted: Sun Aug 25, 2024 9:58 pm
by JusGellin

@JakeSFR
Thanks

You have a nice file manager that make it very clear.

I'll have to think about this a bit.
I guess the size on disk is how many blocks of 1024 bytes are taken up to store this data,
and the total size is the actual size of the files and directories.

Anyway thanks for helping me see why this shows the difference.


Re: ROX and Xfe show different "Directory Size"

Posted: Mon Aug 26, 2024 12:33 am
by MochiMoppel
JakeSFR wrote: Sun Aug 25, 2024 7:36 pm

Interestingly, in case of files, it shows "just" the size.

ROX seems to show "just" the size even in case of directories when you use the "Count" dialog (from the menu).
Apparently it adds up all file sizes, so for a directory containing only 2 single byte files it would show a directory size of 2 bytes.
To make the confusion complete, the title of this dialog is "Disk Usage" :roll:


Re: ROX and Xfe show different "Directory Size"

Posted: Mon Aug 26, 2024 6:17 am
by dimkr

Maybe the difference can be also explained by sparse files. Sometimes, a big file with big regions full of 0 will become a sparse file, it depends on how the file was created, enlarged or copied. Some file managers show the "apparent size" (i.e. 4 GB if it's a 4 GB file full of 0 bytes) while some show the actual size on disk (which can be 0).


Re: ROX and Xfe show different "Directory Size"

Posted: Mon Aug 26, 2024 4:13 pm
by bigpup

You know, a computer can tell you many things.

Knowing, what you really need to know and worry about, is the problem! :roll:

I have never seen two programs, that are suppose to provide the same information, totally 100% agree on what they provided.