Skip to content

owncloud webdav #18

Open
Open

Description

@kerimlcr

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


Activity

  1. gregoirechauvet commented on May 26, 2017

    @gregoirechauvet

    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': "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/remote.php/webdav"
    }
    

    Is that your issue?

  2. designerror commented on May 29, 2017

    @designerror
    Collaborator

    I'm using webdav_root option

    options = {
     'webdav_hostname': "https://<hostname>",
     'webdav_login': "login",
     'webdav_password': "password",
     'webdav_root': "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/remote.php/webdav"
    }```
  3. Nayar commented on Mar 3, 2018

    @Nayar

    Having the same issue :(

  4. krowvin commented on Apr 6, 2018

    @krowvin

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions