Merge pull request #1 from mightydok/isdir

Fix for path extraction or webdav client cant find path to sync
This commit is contained in:
Evgeny Ezhov 2018-02-21 10:05:41 +03:00 committed by GitHub
commit 0a93115956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -966,7 +966,9 @@ class WebDavXmlUtils:
urn = unquote(href)
if path[-1] == Urn.separate:
if not path == urn:
# remove / from path to compare with urn
# e.g. /path = /path
if not path[:-1] == urn:
continue
else:
path_with_sep = "{path}{sep}".format(path=path, sep=Urn.separate)