This commit is contained in:
Audionut 2025-10-12 10:28:42 +10:00
parent 24ecad52fe
commit f56aabbdb7

View file

@ -249,7 +249,6 @@ class FtpFs(AbstractedFS):
need_unlink = False need_unlink = False
td = 0 td = 0
# Don't unlink file for append mode
if w and need_unlink: if w and need_unlink:
if td >= -1 and td <= self.args.ftp_wt: if td >= -1 and td <= self.args.ftp_wt:
# within permitted timeframe; allow overwrite or resume # within permitted timeframe; allow overwrite or resume
@ -269,6 +268,7 @@ class FtpFs(AbstractedFS):
if not do_it: if not do_it:
raise FSE("File already exists") raise FSE("File already exists")
# Don't unlink file for append mode
elif "a" not in mode: elif "a" not in mode:
wunlink(self.log, ap, VF_CAREFUL) wunlink(self.log, ap, VF_CAREFUL)