"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
check: make the error count match up in the log message
Nick Craig-Wood4e2b5389d75f
diff --git a/fs/operations/check.go b/fs/operations/check.goindex dc2f99c07..a1edc0f3d 100644--- a/fs/operations/check.go+++ b/fs/operations/check.go@@ -11,6 +11,7 @@ import ("github.com/pkg/errors""github.com/rclone/rclone/fs""github.com/rclone/rclone/fs/accounting"+ "github.com/rclone/rclone/fs/fserrors""github.com/rclone/rclone/fs/hash""github.com/rclone/rclone/fs/march""github.com/rclone/rclone/lib/readers"@@ -238,10 +239,16 @@ func CheckFn(ctx context.Context, opt *CheckOpt) error {if c.matches > 0 {fs.Logf(c.opt.Fdst, "%d matching files", c.matches)}+ if err != nil {+ return err+ }if c.differences > 0 {- return errors.Errorf("%d differences found", c.differences)+ // Return an already counted error so we don't double count this error too+ err = fserrors.FsError(errors.Errorf("%d differences found", c.differences))+ fserrors.Count(err)+ return err}- return err+ return nil}// Check the files in fsrc and fdst according to Size and hash