diff --git a/backend/ftp/ftp.go b/backend/ftp/ftp.go index a06f977f0..1066fd0b4 100644 --- a/backend/ftp/ftp.go +++ b/backend/ftp/ftp.go @@ -480,6 +480,8 @@ func (f *Fs) mkdir(abspath string) error { switch errX.Code { case ftp.StatusFileUnavailable: // dir already exists: see issue #2181 err = nil + case 521: // dir already exists: error number according to RFC 959: issue #2363 + err = nil } } return err