Skip to content

Make thunar display recursive file size

Submitted by Alexander Schwinn @alexxcons

Assigned to Xfce Bug Triage

Link to original bug (#11524)

Description

For me it would be nice to have the option to enable recursive file-size display in the default-view of thunar. When searching why a bunch of nested folders needs so much disk-space, it's always a pain to "right-click-->properties" each single folder and its sub-folders to see the total size. ( As painful as using du + cd in the console ) For this use-case it would be much more convenient to directly see the total-size in the thunar default-view.

I am aware of the ext4 / inode problem ( circular file-system references) in which the size-checking would end up in a infinite loop, displaying "... checking file size" forever. However I think this would be no problem. It's just a special-case and should be treat as that.

In any case, the attempt to display the total size ( which will succeed in 99% of the cases ) is more informative than always display the same 4.0 KB on each folder.

If you dont like the idea to have the recursive-file-size per default, we could add a flag in the thunar-preferences in order to enable it. ( Personally I would vote for having the feature as default )

If you agree with the idea, and weather it should be the default behavior, I would start the implementation and provide a patch.