Bug 379207 - Excludes folders from collections using RegEx.
Summary: Excludes folders from collections using RegEx.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Database (other bugs)
Version First Reported In: unspecified
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-25 15:47 UTC by Luca RIva
Modified: 2025-12-25 10:54 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca RIva 2017-04-25 15:47:22 UTC
I think that may be useful to add the possibility to exclude folders during the scan using for example regex.
My idea is that under the folder that I add to digikam I have also sub-folders or sub-sub-folders that I wouldn't like to include and see in digikam but in the meantime I also wouldn't like to move them in another position. Using regex could be very nice because is flexible, anyway the possibility to use metacharacters is very important.
Thanks a lot.
Luca
Comment 1 caulier.gilles 2017-04-25 17:24:07 UTC
Please take a look to 5.5.0 release where we have introduced a exclusion feature about Database scan. It's located in Setup/Database panel.

Gilles Caulier
Comment 2 Luca RIva 2017-04-26 06:42:27 UTC
Thanks for the reply.
I've already looked at the feature present in the 5.5.0 but it seems that I can exclude only folder with a specific name (moreover without spaces). My need, instead, is to exclude every folder which name is not always exactly the same but only contains some words.

Luca
Comment 3 caulier.gilles 2020-08-01 21:45:12 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 4 Daniel Ouin 2025-02-24 10:02:09 UTC
This enhancement should be useful for me. Is it possible to include it in the next version?
Comment 5 lepeter2010 2025-12-19 15:10:12 UTC
If implementing RexEx is not yet available, simple wildcarding like would be nice as well.
Examples for implementation: prefix*, *suffix
Comment 6 Maik Qualmann 2025-12-21 12:30:33 UTC
Git commit ab09daab2eff3e03b71d79d7dda5c4eb11f71d94 by Maik Qualmann.
Committed on 21/12/2025 at 12:29.
Pushed by mqualmann into branch 'master'.

add regular expression wildcard support for ignored directories
Wildcard characters such as * ? or [...] are possible.
Related: bug 513583
FIXED-IN: 8.9.0

M  +2    -2    NEWS
M  +16   -0    core/libs/database/collection/collectionscanner_p.cpp
M  +1    -0    core/libs/database/collection/collectionscanner_p.h
M  +2    -2    core/libs/database/collection/collectionscanner_scan.cpp

https://invent.kde.org/graphics/digikam/-/commit/ab09daab2eff3e03b71d79d7dda5c4eb11f71d94
Comment 7 Maik Qualmann 2025-12-21 12:32:56 UTC
We don't want full regular expressions in the GUI for the end user. Wildcard support should suffice.

Maik