2022-04-16 21:45:29 +08:00
|
|
|
from webdav3.client import Client
|
|
|
|
|
|
|
|
import configparser
|
|
|
|
|
|
|
|
options = {
|
2022-04-17 17:25:35 +08:00
|
|
|
'webdav_hostname': "https://dav.jianguoyun.com/dav/",
|
|
|
|
'webdav_login': "794508986@qq.com",
|
|
|
|
'webdav_password': "awncxpzjbgxxztbs"
|
2022-04-16 21:45:29 +08:00
|
|
|
}
|
|
|
|
client = Client(options)
|
|
|
|
# client.execute_request('list')
|
|
|
|
list1 = client.list('/')
|
|
|
|
print(list1)
|
|
|
|
exist = client.check('OpenTodoList')
|
|
|
|
print(exist)
|