added option to choose webdav path

This commit is contained in:
vabene1111
2021-01-22 20:29:29 +01:00
parent fce293e722
commit f1b7ed7d7a
6 changed files with 51 additions and 7 deletions

View File

@ -20,6 +20,8 @@ class Nextcloud(Provider):
'webdav_password': storage.password,
'webdav_root': '/remote.php/dav/files/' + storage.username
}
if storage.path != '':
options['webdav_root'] = storage.path
return wc.Client(options)
@staticmethod