pull/1649/head
kunfei 3 years ago
parent dff79f55e8
commit 9d85b6abb0
  1. 3
      app/src/main/java/io/legado/app/lib/webdav/WebDav.kt

@ -140,6 +140,9 @@ class WebDav(urlStr: String) {
return list return list
} }
/**
* 文件是否存在
*/
suspend fun exists(): Boolean { suspend fun exists(): Boolean {
val response = propFindResponse() ?: return false val response = propFindResponse() ?: return false
val document = Jsoup.parse(response) val document = Jsoup.parse(response)

Loading…
Cancel
Save