From f56aabbdb703e498413b3b40b15c802417ca048b Mon Sep 17 00:00:00 2001 From: Audionut Date: Sun, 12 Oct 2025 10:28:42 +1000 Subject: [PATCH] comment --- copyparty/ftpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/ftpd.py b/copyparty/ftpd.py index a7b27b22..cc7dde25 100644 --- a/copyparty/ftpd.py +++ b/copyparty/ftpd.py @@ -249,7 +249,6 @@ class FtpFs(AbstractedFS): need_unlink = False td = 0 - # Don't unlink file for append mode if w and need_unlink: if td >= -1 and td <= self.args.ftp_wt: # within permitted timeframe; allow overwrite or resume @@ -269,6 +268,7 @@ class FtpFs(AbstractedFS): if not do_it: raise FSE("File already exists") + # Don't unlink file for append mode elif "a" not in mode: wunlink(self.log, ap, VF_CAREFUL)