diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 2cc09b16..8b61837a 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -984,7 +984,7 @@ class HttpCli(object): ret = '\n'.format(uenc) ret += ET.tostring(xroot).decode("utf-8") - if not bos.path.isfile(abspath): + if self.can_write and not bos.path.isfile(abspath): with open(fsenc(abspath), "wb") as _: pass