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

check: make check command obey --dry-run/-i/--interactive - fixes #4325

Nick Craig-Wood63cf0b1cdd92
diff --git a/fs/operations/operations.go b/fs/operations/operations.go
index 413745874..7c51cff65 100644
--- a/fs/operations/operations.go
+++ b/fs/operations/operations.go
@@ -830,6 +830,9 @@ func (c *checkMarch) Match(ctx context.Context, dst, src fs.DirEntry) (recurse b
case fs.Object:
dstX, ok := dst.(fs.Object)
if ok {
+ if SkipDestructive(ctx, src, "check") {
+ return false
+ }
differ, noHash := c.checkIdentical(ctx, dstX, srcX)
if differ {
atomic.AddInt32(&c.differences, 1)