|
|
@@ -22,14 +22,10 @@ class RemoteBookWebDav(val rootBookUrl: String, val authorization: Authorization
|
|
|
|
|
|
init {
|
|
|
runBlocking {
|
|
|
- initRemoteContext()
|
|
|
+ WebDav(rootBookUrl, authorization).makeAsDir()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- suspend fun initRemoteContext() {
|
|
|
- WebDav(rootBookUrl, authorization).makeAsDir()
|
|
|
- }
|
|
|
-
|
|
|
@Throws(Exception::class)
|
|
|
override suspend fun getRemoteBookList(path: String): MutableList<RemoteBook> {
|
|
|
if (!NetworkUtils.isAvailable()) throw NoStackTraceException("网络不可用")
|