fs/operations/operationsflags: warn about logs in conjunction with --no-traverse
This commit is contained in:
parent
3caffd2dd1
commit
403783d851
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue