Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

rcat: add support for --header-upload #59

Nick Craig-Wood1dced3b3c495
diff --git a/fs/operations/operations.go b/fs/operations/operations.go
index 392401b0c..813e2b0e8 100644
--- a/fs/operations/operations.go
+++ b/fs/operations/operations.go
@@ -1344,6 +1344,9 @@ func Rcat(ctx context.Context, fdst fs.Fs, dstFileName string, in io.ReadCloser,
} else {
trackingIn = readCounter
}
+ for _, option := range fs.Config.UploadHeaders {
+ options = append(options, option)
+ }
compare := func(dst fs.Object) error {
var sums map[hash.Type]string