"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 failed to create file system with folder level permissions policy
Nick Craig-Woodb029fb591fb9
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex e230fc6d8..f468a5147 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -1694,12 +1694,9 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, ef.setRoot(newRoot)_, err := f.NewObject(ctx, leaf)if err != nil {- if err == fs.ErrorObjectNotFound || err == fs.ErrorNotAFile {- // File doesn't exist or is a directory so return old f- f.setRoot(oldRoot)- return f, nil- }- return nil, err+ // File doesn't exist or is a directory so return old f+ f.setRoot(oldRoot)+ return f, nil}// return an error with an fs which points to the parentreturn f, fs.ErrorIsFile