From 95f828d7c3023a75bcdc49cad4db0331b9bde90c Mon Sep 17 00:00:00 2001 From: l3uddz Date: Sun, 3 May 2020 10:19:38 +0100 Subject: [PATCH] change(uploader): include forced option in check object of an uploader. this will force generated check filters to be included in any rclone commands for this uploader. --- cmd/upload.go | 3 ++- config/uploader.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/upload.go b/cmd/upload.go index f540b32..ef747bb 100644 --- a/cmd/upload.go +++ b/cmd/upload.go @@ -127,7 +127,8 @@ func performUpload(u *uploader.Uploader) error { /* Generate Additional Rclone Params */ var additionalRcloneParams []string - if !flagNoCheck { + if !flagNoCheck || u.Config.Check.Forced { + // if no-check is false (default) or check is forced via config, include check params additionalRcloneParams = u.CheckRcloneParams() } diff --git a/config/uploader.go b/config/uploader.go index e0d00ed..8a2af20 100644 --- a/config/uploader.go +++ b/config/uploader.go @@ -1,6 +1,7 @@ package config type UploaderCheck struct { + Forced bool Type string Limit uint64 Exclude []string