MCPcopy
hub / github.com/rclone/rclone / Action

Method Action

backend/union/policy/rand.go:30–36  ·  view source on GitHub ↗

Action category policy, governing the modification of files and directories

(ctx context.Context, upstreams []*upstream.Fs, path string)

Source from the content-addressed store, hash-verified

28
29// Action category policy, governing the modification of files and directories
30func (p *Rand) Action(ctx context.Context, upstreams []*upstream.Fs, path string) ([]*upstream.Fs, error) {
31 upstreams, err := p.All.Action(ctx, upstreams, path)
32 if err != nil {
33 return nil, err
34 }
35 return []*upstream.Fs{p.rand(upstreams)}, nil
36}
37
38// ActionEntries is ACTION category policy but receiving a set of candidate entries
39func (p *Rand) ActionEntries(entries ...upstream.Entry) ([]upstream.Entry, error) {

Callers

nothing calls this directly

Calls 2

randMethod · 0.95
ActionMethod · 0.65

Tested by

no test coverage detected