mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
check: make check command obey --dry-run/-i/--interactive - fixes #4325
This commit is contained in:
parent
5866b1b017
commit
63cf0b1cdd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user