Bug 427468 - Duplicate subalbums on Windows 10 (format YYYY\MM)
Summary: Duplicate subalbums on Windows 10 (format YYYY\MM)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Albums (show other bugs)
Version: 7.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-09 00:33 UTC by fernando_epg
Modified: 2020-10-09 18:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.