mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
properly handle deleting not existing directories from local db
This commit is contained in:
parent
0039591a53
commit
f08fd48d1f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue