owncloud webdav
Hi, I tried your client for owncloud upload_sync worked smoothly but download_sync ... I gave the output. What could cause this
c.download_sync(remote_path="http://localhost/owncloud/remote.php/webdav/sync/", local_path="/home/kerim/sync")
Traceback (most recent call last):
File "
In ownCloud, webdav is accessible via /remote.php/webdav
And it's tempting to use ownCloud with this configuration:
options = {
'webdav_hostname': "https://<hostname>/remote.php/webdav",
'webdav_login': "login",
'webdav_password': "password"
}
But in fact you need to use the root option, like this:
options = {
'webdav_hostname': "https://<hostname>",
'webdav_login': "login",
'webdav_password': "password",
'root': "/remote.php/webdav"
}
Is that your issue?
I'm using webdav_root option
options = {
'webdav_hostname': "https://<hostname>",
'webdav_login': "login",
'webdav_password': "password",
'webdav_root': "/remote.php/webdav"
}```
Having the same issue :(
Be sure if you are using a subdirectory to place that in the webdav_root as well:
For example, say your full webdav url is https://nas.domain.com/cloud/remote.php/webdav/
Your options would look like this:
options = {
'webdav_hostname': "https://nas.domain.com",
'webdav_login': "login",
'webdav_password': "password",
'webdav_root': "/cloud/remote.php/webdav"
}