"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
s3: fix incorrect tier support for StorJ and IDrive when pointing at a file
Ole Frost14e852ee9dbf
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 14bfdbdcd..75a477a9e 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -2989,6 +2989,15 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, eGetTier: true,SlowModTime: true,}).Fill(ctx, f)+ if opt.Provider == "Storj" {+ f.features.SetTier = false+ f.features.GetTier = false+ }+ if opt.Provider == "IDrive" {+ f.features.SetTier = false+ }+ // f.listMultipartUploads()+if f.rootBucket != "" && f.rootDirectory != "" && !opt.NoHeadObject && !strings.HasSuffix(root, "/") {// Check to see if the (bucket,directory) is actually an existing fileoldRoot := f.root@@ -3003,14 +3012,6 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e// return an error with an fs which points to the parentreturn f, fs.ErrorIsFile}- if opt.Provider == "Storj" {- f.features.SetTier = false- f.features.GetTier = false- }- if opt.Provider == "IDrive" {- f.features.SetTier = false- }- // f.listMultipartUploads()return f, nil}