mirror of https://github.com/rclone/rclone
ftp: fix transfers from servers that return 250 ok messages
This commit is contained in:
parent
a3ccf4d8a0
commit
80e6389a50
|
|
@ -1292,7 +1292,7 @@ func (f *ftpReadCloser) Close() error {
|
|||
// See: https://github.com/rclone/rclone/issues/3445#issuecomment-521654257
|
||||
if errX := textprotoError(err); errX != nil {
|
||||
switch errX.Code {
|
||||
case ftp.StatusTransfertAborted, ftp.StatusFileUnavailable, ftp.StatusAboutToSend:
|
||||
case ftp.StatusTransfertAborted, ftp.StatusFileUnavailable, ftp.StatusAboutToSend, ftp.StatusRequestedFileActionOK:
|
||||
err = nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue