MCPcopy
hub / github.com/rclone/rclone / Put

Method Put

backend/cache/cache.go:1509–1512  ·  view source on GitHub ↗

Put in to the remote path with the modTime given of the given size

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

Source from the content-addressed store, hash-verified

1507
1508// Put in to the remote path with the modTime given of the given size
1509func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
1510 fs.Debugf(f, "put data at '%s'", src.Remote())
1511 return f.put(ctx, in, src, options, f.Fs.Put)
1512}
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) {

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
DebugfFunction · 0.92
RemoteMethod · 0.65

Tested by

no test coverage detected