GithubHelp home page GithubHelp logo

Comments (3)

jotbe avatar jotbe commented on July 19, 2024

I have a similar issue with pull() and was able to workaround the issue by patching the client.py. It seems that Urn.path() at some point converts a remote path/directory from e.g. foo/ to /foo, i.e. turning it into an absolute path. That one then seems to be appended to the remote_path which already ends with foo.

If I print the list(), I see that the last directory name of a path is part of that list:

['foo/', '001_2020-04-05.mp3', '002_2020-04-09.mp3', '003_2020-04-10.mp3', 'Readme.md']

My understanding is, that the list should not contain foo/. Am I on the right track? That value turns into an empty string later and this workaround helped but is clearly not a fix for the root cause - and it cannot be applied to download_sync:

https://github.com/ezhov-evgeny/webdav-client-python-3/blob/develop/webdav3/client.py#L715

Between L715 and 716 (entry of the loop) I inserted:

if remote_resource_name == '':
    continue

from webdav-client-python-3.

ezhov-evgeny avatar ezhov-evgeny commented on July 19, 2024

@stefanvangastel @jotbe It was released today in version 3.14.2

from webdav-client-python-3.

wehe64 avatar wehe64 commented on July 19, 2024

If I print the list(), I see that the last directory name of a path is part of that list:

['foo/', '001_2020-04-05.mp3', '002_2020-04-09.mp3', '003_2020-04-10.mp3', 'Readme.md']

Just FYI, I'm seeing the same, also against OwnCloud (10.7.0.4 community) - but not against 'rclone serve -v webdav' (linux).
Also just against OwnCloud, client.list(...,get_info=True) returns incomplete info dicts with 'created':None and 'name':None
So I suppose that OwnCloud's webdav implementation could be the culprit.

from webdav-client-python-3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.