mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
修复全新安装恢复备份失败bug
* make sure `files/backup` folder created before restore backup
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user