https://bugs.kde.org/show_bug.cgi?id=507798
Bug ID: 507798
Summary: .digikam_ignore file fails to prevent scanning of
subdirectories on Windows
Classification: Applications
Product: digikam
Version First 8.7.0
Reported In:
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: Database-Scan
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 183753
--> https://bugs.kde.org/attachment.cgi?id=183753&action=edit
sample ss
### ✅ DigiKam Bug Report (for bugs.kde.org or GitLab issue tracker)
**Title:**
`.digikam_ignore` does not recursively exclude subfolders on Windows
**Affected Version:**
digiKam 8.7.0 (Windows 64-bit)
**Platform:**
Windows 10 / Windows 11 (x64)
---
**Description:**
The `.digikam_ignore` file is supposed to prevent digiKam from scanning the
folder it's placed in, **including all its subfolders**. This functionality
works as expected on Linux platforms, but **does not work recursively on
Windows**.
Even when `.digikam_ignore` is present in a parent folder, digiKam still scans
and indexes the subfolders within it on Windows.
---
**Steps to Reproduce:**
1. Create a test folder structure:
```
D:\fotoğraflar\
├── Albums\
└── data\
└── lut3d\
```
2. Place a file named `.digikam_ignore` (with no extension) inside
`D:\fotoğraflar\data\`
3. Add `D:\fotoğraflar\` or `D:\fotoğraflar\Albums\` as a collection in digiKam
4. Place image files (e.g., .jpg) in both `data\` and `data\lut3d\` folders
5. Launch digiKam and trigger a rescan:
`Tools → Scan for new items`
---
**Expected Behavior:**
* digiKam should **completely ignore** `data\` and **all of its subfolders**
* No images or metadata from these directories should appear in Albums,
Searches, or Tags
---
**Actual Behavior (on Windows):**
* digiKam correctly ignores files in `data\`, but **still scans and indexes**
images in subfolders like `data\lut3d\`, `data\cache\`, etc.
* This occurs even when `.digikam_ignore` is **explicitly placed in every
subfolder** (as a workaround)
---
**What I Tried:**
* Confirmed the filename is correct (`.digikam_ignore`, not `.txt`)
* Placed the ignore file using both Windows Explorer and command line (`echo. >
path\.digikam_ignore`)
* Created the file in **all subdirectories recursively**
* Restarted digiKam and performed full rescan
* Made sure the ignored folder is **not** added as a separate collection
* Also tested with short ASCII paths (e.g., no Unicode characters like `ğ`)
Still, the behavior persists.
---
**Notes:**
* The bug appears to be specific to **Windows builds** of digiKam
* On Linux, placing `.digikam_ignore` in a folder correctly excludes all
children
* This makes it difficult to exclude internal data/cache folders on Windows
* The bug has also been reported anecdotally in [digiKam
forums](https://discuss.pixls.us/) and [GitLab
issues](https://invent.kde.org/graphics/digikam/)
---
**Proposed Fix:**
Ensure that on **Windows**, digiKam:
* Recursively checks for `.digikam_ignore` in parent folders of each scanned
directory
* Skips not just the folder itself, but **also its entire subtree**
This behavior should match the documented functionality in the [official
documentation](https://docs.digikam.org/en/asset_management/collections_settings.html#ignoring-folders)
---
--
You are receiving this mail because:
You are watching all bug changes.