优化
This commit is contained in:
@@ -22,14 +22,10 @@ class RemoteBookWebDav(val rootBookUrl: String, val authorization: Authorization
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
initRemoteContext()
|
WebDav(rootBookUrl, authorization).makeAsDir()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun initRemoteContext() {
|
|
||||||
WebDav(rootBookUrl, authorization).makeAsDir()
|
|
||||||
}
|
|
||||||
|
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
override suspend fun getRemoteBookList(path: String): MutableList<RemoteBook> {
|
override suspend fun getRemoteBookList(path: String): MutableList<RemoteBook> {
|
||||||
if (!NetworkUtils.isAvailable()) throw NoStackTraceException("网络不可用")
|
if (!NetworkUtils.isAvailable()) throw NoStackTraceException("网络不可用")
|
||||||
|
|||||||
Reference in New Issue
Block a user