mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -140,6 +140,9 @@ class WebDav(urlStr: String) {
|
||||
return list
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件是否存在
|
||||
*/
|
||||
suspend fun exists(): Boolean {
|
||||
val response = propFindResponse() ?: return false
|
||||
val document = Jsoup.parse(response)
|
||||
|
||||
Reference in New Issue
Block a user