From 772c6e561e348c95e1da913fb189ef5a5b0cb72b Mon Sep 17 00:00:00 2001 From: Jan Losinski Date: Wed, 14 Mar 2018 16:55:46 +0100 Subject: [PATCH] Fix wrong argument for resource creation. Within the resource class its asumed that urn is a Urn instance and not a str. Unwrapping the path here gives an exception at least in write_to(). Signed-off-by: Jan Losinski --- webdav3/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webdav3/client.py b/webdav3/client.py index 26f1838..20a6e4a 100644 --- a/webdav3/client.py +++ b/webdav3/client.py @@ -644,7 +644,7 @@ class Client(object): def resource(self, remote_path): urn = Urn(remote_path) - return Resource(self, urn.path()) + return Resource(self, urn) def push(self, remote_directory, local_directory):