mirror of
https://github.com/rclone/rclone.git
synced 2025-02-27 03:47:57 +08:00
fs/operations/operationsflags: warn about logs in conjunction with --no-traverse
This commit is contained in:
parent
3caffd2dd1
commit
403783d851
@ -119,5 +119,16 @@ func ConfigureLoggers(ctx context.Context, fdst fs.Fs, command *cobra.Command, o
|
||||
}
|
||||
}
|
||||
|
||||
ci := fs.GetConfig(ctx)
|
||||
if ci.NoTraverse && opt.Combined != nil {
|
||||
fs.LogPrintf(fs.LogLevelWarning, nil, "--no-traverse does not list any deletes (-) in --combined output\n")
|
||||
}
|
||||
if ci.NoTraverse && opt.MissingOnSrc != nil {
|
||||
fs.LogPrintf(fs.LogLevelWarning, nil, "--no-traverse makes --missing-on-src produce empty output\n")
|
||||
}
|
||||
if ci.NoTraverse && opt.DestAfter != nil {
|
||||
fs.LogPrintf(fs.LogLevelWarning, nil, "--no-traverse makes --dest-after produce incomplete output\n")
|
||||
}
|
||||
|
||||
return close, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user