diff --git a/src/db/update/Playlist.cxx b/src/db/update/Playlist.cxx index 809fd39a4..f783b329f 100644 --- a/src/db/update/Playlist.cxx +++ b/src/db/update/Playlist.cxx @@ -94,6 +94,9 @@ UpdateWalk::UpdatePlaylistFile(Directory &parent, std::string_view name, directory->AddSong(std::move(db_song)); } } + + if (directory->IsEmpty()) + editor.LockDeleteDirectory(directory); } catch (...) { FmtError(update_domain, "Failed to scan playlist '{}': {}",