Skip to content

[BUG] MIGRATE_DOWNLOADS - Folders not being removed #180

Open

Description

@timemothy

Version v 1.1.0
Weekly Exploration runs fine, migrates files to the playlist folder, and leaves behind the emply file folders.

ex...

/mnt/truenas-media/media/music/aa-inbound/
America - America (1971 24bit-192kHz)
0 items

Activity

  1. LumePart commented on Jun 13, 2026

    @LumePart
    Owner

    Were you using any new options as well? Like OVERWRITE_METADATA?

  2. added
    bug
    on Jun 13, 2026
  3. timemothy commented on Jun 13, 2026

    @timemothy
    Author

    Yep - here's my current options (removed slskd etc)

    WIZARD_COMPLETE=true
    USE_SUBDIRECTORY=true
    DOWNLOAD_SERVICES=slskd
    MIGRATE_DOWNLOADS=true
    OVERWRITE_METADATA=true
    ENRICH_TRACK_METADATA=true
    PATH_TEMPLATE='{{Artist}} - {{TrackName}}.{{ext}}'

  4. LumePart commented on Jun 14, 2026

    @LumePart
    Owner

    Tried to reproduce it, but couldn't. Everything was deleted for me like it should.

    Can you provide some logs from config/logs/explo.log?

  5. timemothy commented on Jun 14, 2026

    @timemothy
    Author

    Here's the log from the latest run... doing a little homework it looks like its creating and keeping not the full pathname from slskd but just one folder "up" from the actual file being downloaded. So I end up with directories like "CD1" which contain the files, and are the ones being left behind after the move. At the bottom of this comment I've also dumped my current "aa-inbound" folder that shows these left behind folders which all contain 0 items in them.

    explo.log

    drwxr-xr-x 2 mothy mothy 0 Jun 14 12:49  .
    drwxr-xr-x 2 mothy mothy 0 Apr 30 06:55  ..
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51  01
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52  12-Vinyl-01
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19 '17 RANDOM XVII (15-10-2020)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 '1996 - Fashion Nugget'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 '(2004) Hot Fuss'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 '[2004] Number Ones [FLAC]'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 '2005 - Jay-Z & Linkin Park - Numb ⁄ Encore'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 '(2016) Fitz And The Tantrums'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 '(2019) Lalala'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 '(2023-09-15) Mitski - The Land Is Inhospitable and So Are We [SLSK, flac]'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19 '[2023] Strangers'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 '2025 - DeBI TiRAR MaS FOToS'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 '(2026) Dandelion'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 '2026 - You Seem Pretty Sad For A Girl So In Love'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50  AM
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 'Best of 50 Cent'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Black Holes and Revelations'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Bob Marley & The Wailers - 1980 - Uprising'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Born in the U.S.A. (1984)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Brother In Arms (1985)'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 'CD 01'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52  CD1
    drwxr-xr-x 2 mothy mothy 0 Jun 13 20:44  CD2
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:17 'Choosin’ Texas'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Collage (2016)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:20  complete
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19  Cradles
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Demon Days'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:20 'Disc 1'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 'Dizzy Up the Girl (1998)'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Dont Forget About Me, Demos'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Drake - Album - 2026 - ICEMAN'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Dua Lipa - Future Nostalgia (The Moonlight Edition - Explicit) (2019) [FLAC] [16B-44.1kHz]'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Easy on My Eyes'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:11 'Edward Sharpe & The Magnetic Zeros - Up From Below (2009), Flac'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'El Dorado'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Ella Langley - 2024 - Still Hungover'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 '[E]  The Divine Feminine [68623579] [2016]'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 'Freakin’ Out'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'GAYLE - a study of the human experience volume one (2022)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Harris, Calvin - 18 Months'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52  Hope
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 'Hot Fuss (2004)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'House of Memories (2022)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Hozier - Album - 2014 - Hozier'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 'ICEMAN (2026) (Explicit) {QZ-xw2rer9gua8jt}'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19 'Into the Spiderverse - Spider-Man Into the Spider-Verse'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52  J
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19 'Jagged Little Pill (1995)'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08  Justin_Bieber-SWAG_II-16BIT-WEB-FLAC-2025-OBZEN
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19 'KPop Demon Hunters Cast, HUNTR_X, Saja Boys - KPop Demon Hunters (Soundtrack from the Netflix Film)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Lauper, Cyndi - Time After Time  The Best Of'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Louis Armstrong'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:53  Madonna
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Malcolm Todd - Sweet Boy'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 'Mark Ronson - Uptown Special(Explicit)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:20 'MGMT - Oracular Spectacular (2008) [FLAC] {24bit 96kHz virgin vinyl rip}'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:29  Music
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07  Musica1
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08  NOBLE
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:20 'OK Computer (1997) [FLAC]'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 'Olivia Dean - The Art of Loving'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Olivia Rodrigo - Album - 2026 - you seem pretty sad for a girl so in love'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Olivia Rodrigo - you seem pretty sad for a girl so in love [2026] [Hi-Res] [FLAC-24Bit]-Sc4r3cr0w'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'Olivia Rodrigo - you seem pretty sad for a girl so in love (2026) - WEB FLAC'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Pixies - Surfer Rosa 1988'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51  R
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50  Rammstein
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52  Rock
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:11 'Silver Side Up (2001)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Simple Plan - No Pads, No Helmets…Just Balls (2002)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Smash Mouth - Smash Mouth (International Version)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 'sombr - Album - 2025 - I Barely Know Her'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'SOUR (2021)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Synchronicity (1983)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 'Talking Dreams (deluxe edition) - (2013) [FLAC]'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Teenage Dream (2010)'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:07 'The Art of Loving'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 11:19 'The Official UK Top 100 Singles Chart 30.05.2025 [2025] [FLAC-16Bit]-Sc4r3cr0w'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:51 'Top 100 Van 1996'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52  Unpeeled
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08  uploaded
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:11 'Urban Hymns (1997)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'VA - Club Sounds - Best of 25 Years (2022) [EU - 2022 - CD] {Sony - 194399 92962 2}'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Various Artists - One Hit Wonders - CD 1'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:51 'Various Artists - The Very Best of Love Songs'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 10:50 'Volume One'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Weezer - Album - 2001 - Weezer'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:08 'whiskey myers - 2011 - firewater (flac)'
    drwxr-xr-x 2 mothy mothy 0 Jun 13 12:52 'Word of Mouth'
    drwxr-xr-x 2 mothy mothy 0 Jun 14 06:26 'you seem pretty sad for a girl so in love (2026)'
    
  6. timemothy commented on Jun 14, 2026

    @timemothy
    Author

    FYI still occuring on v1.1.1

  7. LumePart commented on Jun 15, 2026

    @LumePart
    Owner

    Looked into this a bit more. Not being able to reproduce this at all, the only thing I notice is a similar folder structure in my incomplete slskd download folder, but they all have a incomplete download in them.

    v1.0.0 didn't leave these folders right? Can you run it with v1.0.0 again to check?

  8. added
    can't reproduce
    on Jun 15, 2026
  9. timemothy commented on Jun 17, 2026

    @timemothy
    Author

    @LumePart I'm not sure, I think they were left behind by the old version as well. I can give it a go on the prior version howevver. Do I need to do anything with my config to make it backwards compatible with v1.0.0? I'm thinking through the environment variables and I think they all should work on that version, yes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcan't reproduce

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions