fix: ftp append

This commit is contained in:
Audionut 2025-10-11 14:51:29 +10:00
parent dbd8f837e8
commit ab7d285d0b

View file

@ -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