"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
dropbox: fix error moving just created objects - fixes #8881
Nick Craig-Woodcf9482442630
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.goindex 25cfe2e9d..1d0489f1c 100644--- a/backend/dropbox/dropbox.go+++ b/backend/dropbox/dropbox.go@@ -1330,6 +1330,16 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object,var result *files.RelocationResulterr = f.pacer.Call(func() (bool, error) {result, err = f.srv.MoveV2(&arg)+ switch e := err.(type) {+ case files.MoveV2APIError:+ // There seems to be a bit of eventual consistency here which causes this to+ // fail on just created objects+ // See: https://github.com/rclone/rclone/issues/8881+ if e.EndpointError != nil && e.EndpointError.FromLookup != nil && e.EndpointError.FromLookup.Tag == files.LookupErrorNotFound {+ fs.Debugf(srcObj, "Retrying move on %v error", err)+ return true, err+ }+ }return shouldRetry(ctx, err)})if err != nil {