musikr: recursively clean files

Helps clean out any previous folders from the old revisioned covers
system.
This commit is contained in:
Alexander Capehart 2025-03-17 14:47:15 -06:00
parent 7429dd5174
commit 296bd9ca06
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -136,7 +136,7 @@ private class FSCoverStorage(private val dir: File) : CoverStorage {
}
override suspend fun rm(name: String) {
withContext(Dispatchers.IO) { File(dir, name).delete() }
withContext(Dispatchers.IO) { File(dir, name).deleteRecursively() }
}
}