Bug 207752 - Dolphin showing one file when there are none
Summary: Dolphin showing one file when there are none
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 213453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-18 02:56 UTC by Dotan Cohen
Modified: 2012-11-18 16:44 UTC (History)
4 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 Dotan Cohen 2009-09-18 02:56:40 UTC
Version:            (using KDE 4.3.1)
Installed from:    Ubuntu Packages

Users can configure dolphin in Icon Mode to show file sizes, in this configuration the program will show how many files are inside folders. Dolphin is erroneously showing some empty folders as containing one file.
Comment 1 Dotan Cohen 2009-09-18 02:57:35 UTC
The problem appears to be that a hidden file inside the directory is considered a file for purposes of calculating how many files are in each directory. I do not think that hidden files should be counted.
Comment 2 Dotan Cohen 2009-09-18 02:59:54 UTC
The hidden file inside the directory from the previous comment is the .directory file, this file is not created by the user and should not be part of the count.

Alternatively, as Dolphin can be configured to remember to show or hide hidden files on a per-directory basis, hidden files should be counted only for subfolders that are configured to show them. Thus, a user will never see a discrepancy in the amount of files.
Comment 3 FiNeX 2009-09-18 13:48:59 UTC
I only add that this option ("don't count hidden files") should be turned off by default for avoiding data loss.
Comment 4 Dotan Cohen 2009-10-13 15:27:50 UTC
> I only add that this option ("don't count hidden files") should
> be turned off by default for avoiding data loss.

I agree in general. But what about KDE's .directory files for establishing icons and such? Surely those should not be counted. I stress the comments from comment #2.
Comment 5 Matthias Fuchs 2011-06-01 22:49:24 UTC
*** Bug 213453 has been marked as a duplicate of this bug. ***
Comment 6 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:19:48 UTC
Resetting assignee to default as per bug #305719
Comment 7 Adrián Chaves (Gallaecio) 2012-10-27 05:24:01 UTC
Steps to reproduce:

1. In a test folder, run: “mkdir folder; touch .file”.
2. Go to the test folder using Dolphin.
3. Enter “folder”, and show the hidden files (Alt+.).
4. Go back to “folder” (Alt+↑) and refresh (F5).
    Expected results: Items count is 1 (or 2 if you have per-directory settings and a “.directory” file was created in step 3).
5. Enter “folder”, and hide the hidden files (Alt+.).
6. Go back to “folder” (Alt+↑) and refresh (F5).
    Expected results: Items count is 0.

I cannot reproduce this issue in Dolphin 2.1 (Chakra). That is, it works as described in my steps.
Comment 8 Emmanuel Pescosta 2012-10-29 12:22:01 UTC
I cannot reproduce it either. (Dolphin 2.1 - KDE 4.9.2 - Arch Linux)
Comment 9 Frank Reininghaus 2012-11-18 16:44:56 UTC
Indeed, it seems that Peter "fixed" this when he rewrote the view engine.