Bug 275236 - The information pane doesn't show the correct file size on selecting the file
Summary: The information pane doesn't show the correct file size on selecting the file
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (show other bugs)
Version: 1.6.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Penz
Keywords: junior-jobs, reproducible
Depends on:
Reported: 2011-06-08 22:12 UTC by Praveen Thivari
Modified: 2011-09-22 12:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0

Snapshot of Dolphin (117.99 KB, image/png)
2011-06-08 22:13 UTC, Praveen Thivari
Snapshot of infomation pane (41.95 KB, image/png)
2011-06-08 22:14 UTC, Praveen Thivari

Note You need to log in before you can comment on or make changes to this bug.
Description Praveen Thivari 2011-06-08 22:12:04 UTC
Version:           1.6.1 (using KDE 4.6.3) 
OS:                Linux

When a folder is selected then the folder size should be shown in the information pane. At present it doesn't show the correct file size.

Reproducible: Always

Steps to Reproduce:
In Dolhin, try to select a folder/file,

Actual Results:  
The information place will show the file size to be between 4-6Kb.

Expected Results:  
It should show the actual file size

OS: Linux (i686) release 2.6.38-8-generic
Compiler: cc
Comment 1 Praveen Thivari 2011-06-08 22:13:14 UTC
Created attachment 60794 [details]
Snapshot of Dolphin
Comment 2 Praveen Thivari 2011-06-08 22:14:49 UTC
Created attachment 60795 [details]
Snapshot of infomation pane
Comment 3 Vincent Batts 2011-06-17 20:30:52 UTC
This is not a bug, since the size of a directory on the filesystem a block, typically 4-6k.

It would be serious performance hit, to calculate the recursive size of a directory, on every click.

To see the size of the *contents* of a directory, you must right click -> properties. Then on the "General" tab, there is a "size:" that will give the recursive size.
Comment 4 Peter Penz 2011-06-17 22:07:25 UTC
@Vincent: I agree that showing the real size would be a performance hit, however the current behavior is a regression in the Information Panel that worked in earlier Dolphin versions; instead of showing the size in bytes the number of entries in the directory should be shown instead.
Comment 5 Praveen Thivari 2011-06-18 16:49:08 UTC
If it cannot show a file size then it shouldn't be shown at that place. Wat use is it by the way to a day to day user,in seeing a 4-6 kb file size. It would be better to remove that data from there and add some other useful feature that may be displayed in that place. By the way as Peter has said atleast number of files contained should be shown.