From ab7d285d0b96e4e573c1ff1b8e796176d94f4cbf Mon Sep 17 00:00:00 2001 From: Audionut Date: Sat, 11 Oct 2025 14:51:29 +1000 Subject: [PATCH] fix: ftp append --- copyparty/ftpd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/ftpd.py b/copyparty/ftpd.py index 5482436b..aa46bf97 100644 --- a/copyparty/ftpd.py +++ b/copyparty/ftpd.py @@ -249,7 +249,8 @@ class FtpFs(AbstractedFS): need_unlink = False td = 0 - if w and need_unlink: + # Don't unlink file for append mode + if w and need_unlink and "a" not in mode: if td >= -1 and td <= self.args.ftp_wt: # within permitted timeframe; unlink and accept do_it = True