added 'webdav_root' option
otherwise I get an error (webdav3.exceptions.RemoteResourceNotFound: Remote resource: </path> not found)
This commit is contained in:
parent
bdd092e5d3
commit
fd294dfcdd
@ -16,9 +16,10 @@ class Nextcloud(Provider):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_client(storage):
|
def get_client(storage):
|
||||||
options = {
|
options = {
|
||||||
'webdav_hostname': storage.url + '/remote.php/dav/files/' + storage.username,
|
'webdav_hostname': storage.url,
|
||||||
'webdav_login': storage.username,
|
'webdav_login': storage.username,
|
||||||
'webdav_password': storage.password
|
'webdav_password': storage.password,
|
||||||
|
'webdav_root': '/remote.php/dav/files/' + storage.username
|
||||||
}
|
}
|
||||||
return wc.Client(options)
|
return wc.Client(options)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user