Bug 275236

Summary: The information pane doesn't show the correct file size on selecting the file
Product: [Applications] dolphin Reporter: Praveen Thivari <praveenthivari>
Component: panels: informationAssignee: Peter Penz <peter.penz19>
Status: RESOLVED FIXED    
Severity: normal CC: anand.chirag, frank78ac, vbatts
Priority: NOR Keywords: junior-jobs, reproducible
Version: 1.6.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.0
Attachments: Snapshot of Dolphin
Snapshot of infomation pane

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.