修复全新安装恢复备份失败bug

* make sure `files/backup` folder created before restore backup
This commit is contained in:
Xwite
2022-10-03 07:43:50 +08:00
committed by GitHub
parent d23e611fcf
commit 2994098b89

View File

@@ -27,7 +27,9 @@ import java.util.concurrent.TimeUnit
object Backup {
val backupPath: String by lazy {
appCtx.filesDir.getFile("backup").absolutePath
val path = appCtx.filesDir.getFile("backup").absolutePath
FileUtils.createFolderIfNotExist(path)
path
}
val backupFileNames by lazy {
@@ -182,4 +184,4 @@ object Backup {
}
}
}
}
}