mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
properly handle deleting not existing directories from local db
This commit is contained in:
@ -251,7 +251,7 @@ fun Context.getCachedDirectories(callback: (ArrayList<Directory>) -> Unit) {
|
||||
callback(directories)
|
||||
|
||||
directories.filter { !File(it.path).exists() }.forEach {
|
||||
directoryDao.deleteDir(it)
|
||||
directoryDao.deleteDirPath(it.path)
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
|
Reference in New Issue
Block a user