Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

ftp: fix Put mkParentDir failed: 521 for BunnyCDN - fixes #2363

Nick Craig-Woodb9b9bce0db64
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