forked from TrueCloudLab/rclone
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:
parent
9f04ce282e
commit
c01177bc28
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue