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 // set up a march over fdst and fsrc
m := &march.March{ m := &march.March{
Ctx: ctx, Ctx: ctx,
Fdst: c.opt.Fdst, Fdst: c.opt.Fdst,
Fsrc: c.opt.Fsrc, Fsrc: c.opt.Fsrc,
Dir: "", Dir: "",
Callback: c, Callback: c,
NoTraverse: ci.NoTraverse,
NoUnicodeNormalization: ci.NoUnicodeNormalization,
} }
fs.Debugf(c.opt.Fdst, "Waiting for checks to finish") fs.Debugf(c.opt.Fdst, "Waiting for checks to finish")
err := m.Run(ctx) err := m.Run(ctx)