ROX and Xfe show different "Directory Size"

Moderator: Forum moderators

Post Reply
JusGellin
Posts: 635
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 73 times
Been thanked: 75 times

ROX and Xfe show different "Directory Size"

Post 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

User avatar
JakeSFR
Posts: 276
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 159 times

Re: ROX and Xfe show different "Directory Size"

Post 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 436 times

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
JusGellin
Posts: 635
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 73 times
Been thanked: 75 times

Re: ROX and Xfe show different "Directory Size"

Post 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.

User avatar
MochiMoppel
Posts: 1236
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 439 times

Re: ROX and Xfe show different "Directory Size"

Post 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:

dimkr
Posts: 2423
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1202 times

Re: ROX and Xfe show different "Directory Size"

Post 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).

User avatar
bigpup
Moderator
Posts: 6993
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 911 times
Been thanked: 1528 times

Re: ROX and Xfe show different "Directory Size"

Post 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.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “File Management”