Fix for path extraction or webdav client cant find path to sync

This commit is contained in:
Vitaliy Okulov 2018-02-20 20:11:01 +03:00
parent 743f8b96bb
commit 844ec3bf9c

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)