MCPcopy
hub / github.com/rclone/rclone / SetOptions

Function SetOptions

lib/transform/options.go:38–43  ·  view source on GitHub ↗

SetOptions sets the options in ctx from flags passed in. Any existing flags will be overwritten. s should be in the same format as cmd line flags, i.e. "all,prefix=XXX"

(ctx context.Context, s ...string)

Source from the content-addressed store, hash-verified

36// Any existing flags will be overwritten.
37// s should be in the same format as cmd line flags, i.e. "all,prefix=XXX"
38func SetOptions(ctx context.Context, s ...string) (err error) {
39 ci := fs.GetConfig(ctx)
40 ci.NameTransform = s
41 _, err = getOptions(ctx)
42 return err
43}
44
45// cache to minimize re-parsing
46var (

Callers 15

outputMethod · 0.92
TestTransformFunction · 0.92
TestUnicodeEquivalenceFunction · 0.92
TestTransformFunction · 0.92
TestTransformCopyFunction · 0.92
TestDoubleTransformFunction · 0.92
TestFileTagFunction · 0.92
TestNoTagFunction · 0.92
TestDirTagFunction · 0.92
TestAllTagFunction · 0.92
TestRunTwiceFunction · 0.92
TestSyntaxFunction · 0.92

Calls 2

GetConfigFunction · 0.92
getOptionsFunction · 0.85

Tested by 15

TestTransformFunction · 0.74
TestUnicodeEquivalenceFunction · 0.74
TestTransformFunction · 0.74
TestTransformCopyFunction · 0.74
TestDoubleTransformFunction · 0.74
TestFileTagFunction · 0.74
TestNoTagFunction · 0.74
TestDirTagFunction · 0.74
TestAllTagFunction · 0.74
TestRunTwiceFunction · 0.74
TestSyntaxFunction · 0.74
TestConflictingFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…