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
This commit is contained in:
Nick Craig-Wood 2018-04-08 18:09:49 +01:00
parent 9f04ce282e
commit c01177bc28

View File

@ -247,7 +247,7 @@ func translateErrorFile(err error) error {
switch errX := err.(type) { switch errX := err.(type) {
case *textproto.Error: case *textproto.Error:
switch errX.Code { switch errX.Code {
case ftp.StatusFileUnavailable: case ftp.StatusFileUnavailable, ftp.StatusFileActionIgnored:
err = fs.ErrorObjectNotFound err = fs.ErrorObjectNotFound
} }
} }