mirror of
https://github.com/rclone/rclone.git
synced 2025-12-14 23:33:22 +00:00
rc: fix operations/check ignoring oneWay parameter
Change param from parsing "oneway" to "oneWay" as bool value, as the docs say "oneWay - check one way only, source files must exist on remote"
This commit is contained in:
@@ -820,7 +820,7 @@ func rcCheck(ctx context.Context, in rc.Params) (out rc.Params, err error) {
|
|||||||
return nil, rc.NewErrParamInvalid(errors.New("need srcFs parameter when not using checkFileHash"))
|
return nil, rc.NewErrParamInvalid(errors.New("need srcFs parameter when not using checkFileHash"))
|
||||||
}
|
}
|
||||||
|
|
||||||
oneway, _ := in.GetBool("oneway")
|
oneway, _ := in.GetBool("oneWay")
|
||||||
download, _ := in.GetBool("download")
|
download, _ := in.GetBool("download")
|
||||||
|
|
||||||
opt := &CheckOpt{
|
opt := &CheckOpt{
|
||||||
|
|||||||
Reference in New Issue
Block a user