Skip to content

Commit

Permalink
change(uploader): include forced option in check object of an uploader.
Browse files Browse the repository at this point in the history
this will force generated check filters to be included in any rclone commands for this uploader.
  • Loading branch information
l3uddz committed May 3, 2020
1 parent cfd8cf5 commit 95f828d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
1 change: 1 addition & 0 deletions config/uploader.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package config

type UploaderCheck struct {
Forced bool
Type string
Limit uint64
Exclude []string
Expand Down

0 comments on commit 95f828d

Please sign in to comment.