Bug 427468

Summary: Duplicate subalbums on Windows 10 (format YYYY\MM)
Product: [Applications] digikam Reporter: fernando_epg
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, fernando_epg, metzpinguin
Priority: NOR    
Version: 7.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.2.0

Description fernando_epg 2020-10-09 00:33:46 UTC
SUMMARY
I have configured digikam to import photos to my Windows PC and organize them in folders based on the following structure (yyyy\MM\file). Whenever I try to import them, I get 2 subalbums, one created under the expected hierarchy (MM sub-album nested under YYYY) and a duplicated one, which shows directly as yyyy\MM (month isn't nested in the year, but rather a new folder whose name is yyyy\MM).

If I try to trash the duplicate, it sends to trash both versions. If I restore the images from within trash, it restores them to the expected results.

STEPS TO REPRODUCE
1. Select Import and chose the source device/medium
2. On the Auto-creation of Albums select Date-based sub-albums
3. Date format should be set to custom and use yyyy\MM
4. Import files.
5. In the Albums view, you get both entries.
6. Delete the non-nested sub-album with yyyy\MM format (both entries disappear).
7. Go to Trash, restore the items (nested folder structure is honored)

OBSERVED RESULT
Duplicated sub-albums are shown, one nested and a stand-alone one.

EXPECTED RESULT
Sub-album should be nested and items should be placed there without duplicate entries.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2020-10-09 02:16:37 UTC
Which digiKzm version did you use ?
Comment 2 fernando_epg 2020-10-09 02:38:18 UTC
Digikam 7.1.0
Comment 3 Maik Qualmann 2020-10-09 05:51:34 UTC
Use the Unix "/" slash for directory separation. So YYYY/MM. We need to convert this internally.

Maik
Comment 4 fernando_epg 2020-10-09 16:50:28 UTC
Thanks for the suggestion. I just tested it and worked like a charm.