added 'webdav_root' option

otherwise I get an error (webdav3.exceptions.RemoteResourceNotFound: Remote resource: </path> not found)
This commit is contained in:
pataya23 2020-04-13 13:19:03 +02:00 committed by GitHub
parent bdd092e5d3
commit fd294dfcdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,10 @@ class Nextcloud(Provider):
@staticmethod
def get_client(storage):
options = {
'webdav_hostname': storage.url + '/remote.php/dav/files/' + storage.username,
'webdav_hostname': storage.url,
'webdav_login': storage.username,
'webdav_password': storage.password
'webdav_password': storage.password,
'webdav_root': '/remote.php/dav/files/' + storage.username
}
return wc.Client(options)