"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
cmd/copyurl: fix checking of --dry-run
Denis Skovpen2d2533a08a84
diff --git a/fs/operations/operations.go b/fs/operations/operations.goindex d311d880e..e7a3b3ad9 100644--- a/fs/operations/operations.go+++ b/fs/operations/operations.go@@ -1337,6 +1337,14 @@ func RcatSize(fdst fs.Fs, dstFileName string, in io.ReadCloser, size int64, modTaccounting.Stats.Transferring(dstFileName)body := ioutil.NopCloser(in) // we let the server close the bodyin := accounting.NewAccountSizeName(body, size, dstFileName) // account the transfer (no buffering)++ if fs.Config.DryRun {+ fs.Logf("stdin", "Not uploading as --dry-run")+ // prevents "broken pipe" errors+ _, err = io.Copy(ioutil.Discard, in)+ return nil, err+ }+var err errordefer func() {closeErr := in.Close()