<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>427468</bug_id>
          
          <creation_ts>2020-10-09 00:33:46 +0000</creation_ts>
          <short_desc>Duplicate subalbums on Windows 10 (format YYYY\MM)</short_desc>
          <delta_ts>2020-10-09 18:24:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Import-Albums</component>
          <version>7.1.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>fernando_epg</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>fernando_epg</cc>
    
    <cc>metzpinguin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>7.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1963401</commentid>
    <comment_count>0</comment_count>
    <who name="">fernando_epg</who>
    <bug_when>2020-10-09 00:33:46 +0000</bug_when>
    <thetext>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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963412</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2020-10-09 02:16:37 +0000</bug_when>
    <thetext>Which digiKzm version did you use ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963415</commentid>
    <comment_count>2</comment_count>
    <who name="">fernando_epg</who>
    <bug_when>2020-10-09 02:38:18 +0000</bug_when>
    <thetext>Digikam 7.1.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963441</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-10-09 05:51:34 +0000</bug_when>
    <thetext>Use the Unix &quot;/&quot; slash for directory separation. So YYYY/MM. We need to convert this internally.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963517</commentid>
    <comment_count>4</comment_count>
    <who name="">fernando_epg</who>
    <bug_when>2020-10-09 16:50:28 +0000</bug_when>
    <thetext>Thanks for the suggestion. I just tested it and worked like a charm.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>