"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
internxt: fix server-side moves failing with "Not Found" or "already exists"
Nick Craig-Woodee26daecd8a7
diff --git a/backend/internxt/internxt.go b/backend/internxt/internxt.goindex 598384439..fc4f1b46f 100644--- a/backend/internxt/internxt.go+++ b/backend/internxt/internxt.go@@ -974,6 +974,12 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object,// Move the file server-sideerr = f.pacer.Call(func() (bool, error) {err := files.MoveFile(ctx, f.cfg, srcObj.uuid, directoryID, newName, newType)+ // The move is checked against lagging read replicas so it can+ // fail with 404 if the destination directory was just created+ // or 409 if a file at the destination was just deleted.+ if err != nil && isStaleReadError(err, true) {+ return true, err+ }return f.shouldRetry(ctx, err)})if err != nil {