check: implement --no-traverse and --no-unicode-normalization

See: https://forum.rclone.org/t/rclone-check-head-or-list-object-from-source/30400
This commit is contained in:
Nick Craig-Wood 2022-04-26 09:22:30 +01:00
parent 4d72abf389
commit 4f94b27800

View File

@ -219,11 +219,13 @@ func CheckFn(ctx context.Context, opt *CheckOpt) error {
// set up a march over fdst and fsrc
m := &march.March{
Ctx: ctx,
Fdst: c.opt.Fdst,
Fsrc: c.opt.Fsrc,
Dir: "",
Callback: c,
Ctx: ctx,
Fdst: c.opt.Fdst,
Fsrc: c.opt.Fsrc,
Dir: "",
Callback: c,
NoTraverse: ci.NoTraverse,
NoUnicodeNormalization: ci.NoUnicodeNormalization,
}
fs.Debugf(c.opt.Fdst, "Waiting for checks to finish")
err := m.Run(ctx)