From 6a96c62fde1a9950d1cd7e184ba279e1516c17bd Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 27 Nov 2022 22:05:38 +0000 Subject: [PATCH] ok windows is just gonna have to make do --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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