Bug 513695

Summary: Import/Add Folders duplicates result in case of multi-selection
Product: [Applications] digikam Reporter: omimet <omimet>
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 9.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: overlay of Selection pop-up and resulting hierarchy
attachment-3775240-0.html

Description omimet@free.fr 2025-12-22 09:57:45 UTC
Created attachment 187866 [details]
overlay of Selection pop-up and resulting hierarchy

SUMMARY
Import multiple-selection of sub-folders create 2 copies of the sub-folders list : 
- one directly as a sub-hierarchy of the import selected album
- a second one (succeeding the first one...), as a tree from the selected album to be imported 


STEPS TO REPRODUCE
1. View/Separate items/ => By Album
2. Import/Add Folders=> select one folder in a local device ("Stockage interne" in my example)
3. multi-select some sub-folders of this folder (maj+clic) => Choose (all sub-folders in my example)
4. select the destination album => import is launched....


OBSERVED RESULT
-first stage : the selected sub-folders are copies as sub-album of the importing selected album
-second stage : the whole source folder (where sub-folders to be imported has been selected) is copied as a sub-album of the importing selected album.

=> files qty is exactly twice the expected one


EXPECTED RESULT
First stage only.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 43/Wayland
Digikam : 8.9.0 appimage (21/12/2025 19:00)


ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2025-12-22 10:28:30 UTC
Your local mount path looks strange for a Samsung smartphone. What file sync tool are you using (FreeFileSync)? It might be a virtual file system.

Maik
Comment 2 omimet@free.fr 2025-12-22 12:17:47 UTC
Created attachment 187867 [details]
attachment-3775240-0.html

Hi Maik,

Yes, I test FreeFileSync to synchronise the internal storage of my 
smartphone (not rooted)  into a dedicated folder on my local file system 
(NTFS), before importing this folder into Digikam in a second step.

The screenshot attached to my bug sheet is caught during this second 
step (Menu Import/Add Folders/...)

I do in this way in order to push away a lot of files/folders which are 
not interesting for my collections (criteria is more the origin/nature 
point of view than the picture quality...), before doing the DK import 
itself, because DK import allow folder selection, but not easily enough 
(mainly due to not expand/collapse feature ?).

This way allow a very fluent synchronisation of the smartphone, without 
time spent about content. (but I'm interested in case of better REX to 
do so!)

Hope its a clear explanation.

Best regards,

Olivier

Le 22/12/2025 à 11:28, Maik Qualmann a écrit :

> https://bugs.kde.org/show_bug.cgi?id=513695
>
> Maik Qualmann<metzpinguin@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |metzpinguin@gmail.com
>
> --- Comment #1 from Maik Qualmann<metzpinguin@gmail.com> ---
> Your local mount path looks strange for a Samsung smartphone. What file sync
> tool are you using (FreeFileSync)? It might be a virtual file system.
>
> Maik
>