优化
This commit is contained in:
1 parent
e24aa0dbd8
commit
07803959b1
1 file changed
+1
-5
@@ -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