Directory size in properties doesn't count hidden files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
Unknown
|
Unknown
|
|||
nautilus (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: nautilus
What happens :
When doing right-click → Properties on a directory's icon, the «Contents» field reports an incorrect file size : hidden files are not take into account.
This happens even if hidden files are displayed.
This happens both as root and as non-root.
What should happen :
Hidden files should be included in directory size calculation. If for some bizarre reason you estimate that they shouldn't be taken into account (this violates the principle of least astonishment, but nevermind), at least they should be taken into accound when hidden files are shown.
Steps to reproduce :
cd /tmp
mkdir -p a/.hidden
dd if=/dev/urandom of=a/dataOk bs=1M count=5
dd if=/dev/urandom of=a/.hidden/
dd if=/dev/urandom of=a/.dataHidde
du -hs a
# du reports 26M.
nautilus .
# right-click on a → properties reports 5M.
lsb_release -rd :
Description: Ubuntu 10.04.2 LTS
Release: 10.04
apt-cache policy nautilus :
nautilus:
Installed : 1:2.30.1-0ubuntu1.1
Candidate : 1:2.30.1-0ubuntu1.1
Version table :
*** 1:2.30.1-0ubuntu1.1 0
500 http://
100 /var/lib/
1:2.30.0-0ubuntu4 0
500 http://
Changed in nautilus (Ubuntu): | |
importance: | Undecided → Low |
Hi jahvascriptmaniac
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I can confirm that when using the package nautilus on Ubuntu 10.10 using the steps provided by jahvascriptmaniac that I can reproduce the bug. Therefore I have set this bug to confirmed.
To reproduce this bug I followed the steps below:
1. Create a new folder called test in your home directory
2. Create (or copy) a file inside this folder and make it hidden.
3. Right-click on the folder and click properties
4. Note that properties window says 'Contents: nothing'
5. Press CTRL+H to show hidden files
6. Go back to properties window and note that it still says 'Contents: nothing'
What I expected to happen:
For the Nautilus properties window to include the size of hidden files and number of hidden files either:
-All the time
or
-When hidden files are selected to be shown (CTRL+H)
However someone will need to decide which behaviour should be the default. I personally would expect the second option to be the default and not the current behaviour.
Description: Ubuntu 10.10
Release: 10.10
nautilus: gb.archive. ubuntu. com/ubuntu/ maverick- updates/ main i386 Packages dpkg/status 2.32.0- 0ubuntu1 0 gb.archive. ubuntu. com/ubuntu/ maverick/main i386 Packages
Installed: 1:2.32.0-0ubuntu1.3
Candidate: 1:2.32.0-0ubuntu1.3
Version table:
*** 1:2.32.0-0ubuntu1.3 0
500 http://
100 /var/lib/
1:
500 http://
Andy