From 844ec3bf9c74c957786df158634a93770bc6bba4 Mon Sep 17 00:00:00 2001 From: Vitaliy Okulov Date: Tue, 20 Feb 2018 20:11:01 +0300 Subject: [PATCH] Fix for path extraction or webdav client cant find path to sync --- webdav3/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webdav3/client.py b/webdav3/client.py index 2452572..26f1838 100644 --- a/webdav3/client.py +++ b/webdav3/client.py @@ -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)