pull/1822/head
kunfei 3 years ago
parent 5e56eb43d3
commit e25d377602
  1. 2
      app/src/main/java/io/legado/app/help/storage/AppWebDav.kt

@ -136,6 +136,7 @@ object AppWebDav {
} }
suspend fun backUpWebDav(path: String) { suspend fun backUpWebDav(path: String) {
if (!NetworkUtils.isAvailable()) return
try { try {
authorization?.let { authorization?.let {
val paths = arrayListOf(*Backup.backupFileNames) val paths = arrayListOf(*Backup.backupFileNames)
@ -154,6 +155,7 @@ object AppWebDav {
} }
suspend fun exportWebDav(byteArray: ByteArray, fileName: String) { suspend fun exportWebDav(byteArray: ByteArray, fileName: String) {
if (!NetworkUtils.isAvailable()) return
try { try {
authorization?.let { authorization?.let {
// 如果导出的本地文件存在,开始上传 // 如果导出的本地文件存在,开始上传

Loading…
Cancel
Save