MCPcopy
hub / github.com/rclone/rclone / Create

Method Create

backend/union/policy/eprand.go:48–54  ·  view source on GitHub ↗

Create category policy, governing the creation of files and directories

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

Source from the content-addressed store, hash-verified

46
47// Create category policy, governing the creation of files and directories
48func (p *EpRand) Create(ctx context.Context, upstreams []*upstream.Fs, path string) ([]*upstream.Fs, error) {
49 upstreams, err := p.EpAll.Create(ctx, upstreams, path)
50 if err != nil {
51 return nil, err
52 }
53 return []*upstream.Fs{p.rand(upstreams)}, nil
54}
55
56// CreateEntries is CREATE category policy but receiving a set of candidate entries
57func (p *EpRand) CreateEntries(entries ...upstream.Entry) ([]upstream.Entry, error) {

Callers

nothing calls this directly

Calls 2

randMethod · 0.95
CreateMethod · 0.65

Tested by

no test coverage detected