From c01177bc28db883c02fdbfb3830e0a2b4e422710 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 8 Apr 2018 18:09:49 +0100 Subject: [PATCH] ftp: work around strange response from box FTP server The Box FTP server seems to send 450 instead of 550 - work around that. See: https://forum.rclone.org/t/using-box-com-over-ftp-problems/5313 --- backend/ftp/ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/ftp/ftp.go b/backend/ftp/ftp.go index 15e79131a..eb51bd833 100644 --- a/backend/ftp/ftp.go +++ b/backend/ftp/ftp.go @@ -247,7 +247,7 @@ func translateErrorFile(err error) error { switch errX := err.(type) { case *textproto.Error: switch errX.Code { - case ftp.StatusFileUnavailable: + case ftp.StatusFileUnavailable, ftp.StatusFileActionIgnored: err = fs.ErrorObjectNotFound } }