Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

owncloud webdav #18

Open
kerimlcr opened this issue Feb 27, 2017 · 4 comments
Open

owncloud webdav #18

kerimlcr opened this issue Feb 27, 2017 · 4 comments

Comments

@kerimlcr
Copy link

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 "", line 1, in
File "/home/kerim/.local/lib/python2.7/site-packages/webdav/client.py", line 417, in download_sync
self.download(local_path=local_path, remote_path=remote_path)
File "/home/kerim/.local/lib/python2.7/site-packages/webdav/client.py", line 358, in download
if self.is_dir(urn.path()):
File "/home/kerim/.local/lib/python2.7/site-packages/webdav/client.py", line 845, in is_dir
raise RemoteResourceNotFound(remote_path)
webdav.exceptions.RemoteResourceNotFound: Remote resource: /http:/localhost/owncloud/remote.php/webdav/sync/ not found


@gregoirechauvet
Copy link

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?

@designerror
Copy link
Collaborator

designerror commented May 29, 2017

I'm using webdav_root option

options = {
 'webdav_hostname': "https://<hostname>",
 'webdav_login': "login",
 'webdav_password': "password",
 'webdav_root': "/remote.php/webdav"
}```

@Nayar
Copy link

Nayar commented Mar 3, 2018

Having the same issue :(

@krowvin
Copy link

krowvin commented Apr 6, 2018

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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants