"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
mega: fix moved files disappearing from listings between remotes
Nick Craig-Wood74be61735cbd
diff --git a/backend/mega/mega.go b/backend/mega/mega.goindex 297f62436..aabd559b1 100644--- a/backend/mega/mega.go+++ b/backend/mega/mega.go@@ -272,7 +272,6 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, eif err != nil {return nil, fmt.Errorf("couldn't login: %w", err)}- megaCache[opt.User] = srvm.Set(sessionIDConfigKey, srv.GetSessionID())encodedMasterKey := base64.StdEncoding.EncodeToString(srv.GetMasterKey())m.Set(masterKeyConfigKey, encodedMasterKey)@@ -287,6 +286,10 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, ereturn nil, fmt.Errorf("login with previous auth keys failed: %w", err)}}+ // Cache the session so all Fs instances of this user share+ // it - the move code relies on all objects being in the same+ // in-memory tree.+ megaCache[opt.User] = srv}f.srv = srv