Bug 457635 - Properties of directory probably shows incorrect count (number) of files within that folder and sub-folders
Summary: Properties of directory probably shows incorrect count (number) of files with...
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-08 17:06 UTC by andrewwise3904
Modified: 2022-09-08 04:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrewwise3904 2022-08-08 17:06:26 UTC
SUMMARY
Number of files within folder (directory) and sub-folders(sub-directory) are probably incorrect

STEPS TO REPRODUCE
1. right-click on the directory/folder
2. left-click on 'properties'

OBSERVED RESULT
I rsync copied a folder called 'apps' from my /home partition to another partition on another disk. That partition path is /media/data/storage/

when I get the properties of the apps folder in /media/data/storage, under 'Size' there is a count of how many files there are in that folder and sub-folder's and the number of sub-folders. I can see a count of 25,363 files, 16,555 sub-folders. When i check the 'apps' folder in my /home/username directory. The count of files is:

24,902 files, 16,555 sub-folders

In terminal, while in the /home/username/apps directory, if I do:

find . -type f | wc -l

the output is: 

24523

In terminal, while in the /media/data/storage/apps directory, if I do:

find . -type f | wc -l

the output is:

24523

p.s. clicking 'refresh' (as suggested with this bug: https://bugs.kde.org/show_bug.cgi?id=238424) for folder /home/username/apps/ does not change the number of files. it remains: 24,902. Same for /media/data/storage/apps, hitting refresh does not change the file count. It remains: 25363.

EXPECTED RESULT
The number (amount) of files should match. I checked using Thunar file manager which report the number of items (the number of files + sub-directories) and the result is the same for both locations. i.e. 41919.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 andrewwise3904 2022-08-09 04:50:29 UTC
I forgot to add the O/S version and Desktop Environment earlier. Here it is:

> SOFTWARE/OS VERSIONS
> Windows: 
> macOS: 
> Linux/KDE Plasma: void linux 5.16.20_1/xfce 4.16
> (available in About System)
> KDE Plasma Version: 
> KDE Frameworks Version: 
> Qt Version:
Comment 2 Paul Worrall 2022-08-09 08:00:38 UTC
The difference between Dolphin and Find might be partly explained by symbolic links if there are any, does  "find . -type f -o -type l" make a difference?
Comment 3 Bug Janitor Service 2022-08-24 04:35:39 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-09-08 04:36:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!