Updated flash location so it's one layer deeper preventing accidental cache deletion

This commit is contained in:
Viktor De Pasquale 2019-07-11 15:34:41 +02:00 committed by John Wu
parent 5875ced367
commit 452db51669

View File

@ -21,7 +21,10 @@ abstract class FlashZip(
) {
private val app: App by inject()
private val tmpFile: File = File(app.cacheDir, "install.zip")
private val installFolder = File(app.cacheDir, "flash").apply {
if (!exists()) mkdirs()
}
private val tmpFile: File = File(installFolder, "install.zip")
@Throws(IOException::class)
private fun unzipAndCheck(): Boolean {