MCPcopy
hub / github.com/rclone/rclone / parse

Function parse

lib/transform/options.go:84–91  ·  view source on GitHub ↗

parse a single instance of --name-transform

(s string)

Source from the content-addressed store, hash-verified

82
83// parse a single instance of --name-transform
84func parse(s string) (t transform, err error) {
85 if s == "" {
86 return t, nil
87 }
88 s = t.parseTag(s)
89 err = t.parseKeyVal(s)
90 return t, err
91}
92
93// parse the tag (file/dir/all), set the option accordingly, and return the trimmed string
94//

Callers 1

getOptionsFunction · 0.70

Calls 2

parseTagMethod · 0.80
parseKeyValMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…