Add mutation to clear the cached images (#775)

This commit is contained in:
schroda
2023-11-25 17:53:29 +01:00
committed by GitHub
parent 9110c07ed9
commit d21b2018cb
3 changed files with 63 additions and 0 deletions

View File

@@ -114,4 +114,8 @@ object ImageResponse {
File(it).delete()
}
}
fun clearImages(saveDir: String): Boolean {
return File(saveDir).deleteRecursively()
}
}