Bug 238424

Summary: Dolphin shows wrong folder and item count in "properties" for folders on ntfs volumes
Product: [Frameworks and Libraries] frameworks-kio Reporter: usrrgt
Component: generalAssignee: David Faure <faure>
Status: CONFIRMED ---    
Severity: normal CC: alexkde, amrecio, bugseforuns, caionnew, deadinside777, karl, kde, kdelibs-bugs, nate, ododos, scitrin, spamemailek, usrrgt
Priority: NOR    
Version: 5.45.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description usrrgt 2010-05-21 20:17:26 UTC
Version:            (using KDE 4.4.3)
OS:                Linux
Installed from:    Ubuntu Packages

I copied files (about 200.000) from an ext3 USB HD to a NTFS USB HD.
Dolphin copied all files correctly, but when I compared the copy with de the properties tab info of Dolphin, it says that NTFS USB HD has the same directories, but less files.

I corroborated with Nautilus that both HDs have the same files, as Dolphin said when the copy was finished.
Comment 1 disabled account 2010-05-22 07:51:25 UTC
(In reply to comment #0)
> I copied files (about 200.000) from an ext3 USB HD to a NTFS USB HD.
> Dolphin copied all files correctly, but when I compared the copy with de the
> properties tab info of Dolphin, it says that NTFS USB HD has the same
> directories, but less files.
> 
> I corroborated with Nautilus that both HDs have the same files, as Dolphin said
> when the copy was finished.

Did you try to click the refresh button? Dolphin always shows a different result for me after I hit the refresh button.
Comment 2 usrrgt 2010-05-22 13:46:57 UTC
Thank you for your help. But no, I don't try it. It's a bug anyway.
I am only using KDE 4 to report bugs while these main bugs are fixed.
Comment 3 disabled account 2010-05-23 00:21:49 UTC
(In reply to comment #2)
> Thank you for your help. But no, I don't try it. It's a bug anyway.
> I am only using KDE 4 to report bugs while these main bugs are fixed.

Could you please try and see if dolphin shows the right count after you click "refresh"?
Of course it is a bug, it seems only to happen with very big folders though, can you please also check the behavior on your ext3 folder (does it display the right count without the refresh)?
I encounter this bug on a very big directory too, it is also on a ntfs volume.
Comment 4 usrrgt 2010-05-23 17:59:54 UTC
O.K. I'm here again.

I tested with both folders, and in my case:
- In the ext3 folder, after I click "Refresh" I get this result: Dolphin shows all files and folders and the and the correct space that is occupying.
- In the NTFS folder, after I click "Refresh" I get this result): Dolphin doesn't show all files or the correct space (I tried it clicking on "Refresh" button two times).
Comment 5 usrrgt 2010-05-23 18:06:41 UTC
== THE CORRECT COMMENT (don't read my previous comment) ==

O.K. I'm here again.

I tested with both folders, and in my case:
- In the ext3 folder, after I click "Refresh" I get this result: Dolphin shows
all files and folders and the correct space that is occupying (as without clicking the "Refresh" button).
- In the NTFS folder, after I click "Refresh" I get this result: Dolphin
doesn't show all files or the correct space (as without clicking the "Refresh" button). I tried this clicking on "Refresh" button two times.
Comment 6 disabled account 2010-05-23 18:26:39 UTC
Thank you :)
Can you try the behavior of a smaller folder on an ntfs volume as well? So we can say that this just happens for very big folders. The behavior for me is:
I open up properties for a very big folder on ntfs (my pictures folder) it says me that the folder is about 2.9GB big, I click refresh and all of a sudden it is just 2.6GB, does the value change for you as well?
Comment 7 usrrgt 2010-05-24 11:38:00 UTC
My folder has more than 300 GB.

Also I tried it with a folder of about 54 GB and less of 10.000 files and I have not got any problem in any partition type. So IMHO I think that the bug is relationated with the numer of files that are copied in a NTFS partition, not with the copy size.

Please, mark as confirmed.
Comment 8 usrrgt 2010-05-24 11:43:31 UTC
...or also it might be related to some files that have nonstandard characters in their filename (will not be the first time that KDE have problems with this kind of files).
Comment 9 Dawit Alemayehu 2012-09-28 18:08:31 UTC
*** Bug 307451 has been marked as a duplicate of this bug. ***
Comment 10 Dawit Alemayehu 2012-09-28 18:39:10 UTC
*** Bug 181264 has been marked as a duplicate of this bug. ***
Comment 11 Dawit Alemayehu 2012-09-28 18:59:34 UTC
*** Bug 265839 has been marked as a duplicate of this bug. ***
Comment 12 Dawit Alemayehu 2012-09-28 19:01:31 UTC
*** Bug 284163 has been marked as a duplicate of this bug. ***
Comment 13 Theo 2014-09-27 13:41:13 UTC
I have noticed this behavior on cds and dvds: After inserting a cd or dvd and immediately selecting to view the properties of all files and folder from dolphin, the total size and number of files and folders is incorrectly reported. After refreshing a few times, the numbers change and finally are set.
I investigated this behavior after dragging the contents of a dvd to my directory and finding out that quite a few files and folders had not been copied. This looks like a serious bug to me.
I suspect that this behavior is caused by the selecting or dragging procedures prematurely creating an incomplete list of files to work with, before the system has accounted for the full directory structure.
Comment 14 David Edmundson 2018-11-21 00:28:08 UTC
I've found something interesting and relevant.

NTFS and ext3 list different total sizes for identical directories.

When counting directory size we include the size of entry "." the folder itself.

On ext3 this has a size of 4096. 
On NTFS this has a size of 0.
 
stat matches what we have. ls does not.

That wouldn't affect the "total number of files", only the total file size.