properly handle deleting not existing directories from local db

This commit is contained in:
tibbi 2018-04-21 22:23:42 +02:00
parent 0039591a53
commit f08fd48d1f

View file

@ -251,7 +251,7 @@ fun Context.getCachedDirectories(callback: (ArrayList<Directory>) -> Unit) {
callback(directories) callback(directories)
directories.filter { !File(it.path).exists() }.forEach { directories.filter { !File(it.path).exists() }.forEach {
directoryDao.deleteDir(it) directoryDao.deleteDirPath(it.path)
} }
}.start() }.start()
} }