MCPcopy
hub / github.com/rclone/rclone / PutUnchecked

Method PutUnchecked

backend/cache/cache.go:1515–1522  ·  view source on GitHub ↗

PutUnchecked uploads the object

(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption)

Source from the content-addressed store, hash-verified

1513
1514// PutUnchecked uploads the object
1515func (f *Fs) PutUnchecked(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
1516 do := f.Fs.Features().PutUnchecked
1517 if do == nil {
1518 return nil, errors.New("can't PutUnchecked")
1519 }
1520 fs.Debugf(f, "put data unchecked in '%s'", src.Remote())
1521 return f.put(ctx, in, src, options, do)
1522}
1523
1524// PutStream uploads the object
1525func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {

Callers

nothing calls this directly

Calls 4

putMethod · 0.95
DebugfFunction · 0.92
FeaturesMethod · 0.65
RemoteMethod · 0.65

Tested by

no test coverage detected