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

Method Put

backend/crypt/crypt.go:570–572  ·  view source on GitHub ↗

Put in to the remote path with the modTime given of the given size May create the object even if it returns an error - if so will return the object and the error, otherwise will return nil and the error

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

Source from the content-addressed store, hash-verified

568// will return the object and the error, otherwise will return
569// nil and the error
570func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
571 return f.put(ctx, in, src, options, f.Fs.Put)
572}
573
574// PutStream uploads to the remote path with the modTime given of indeterminate size
575func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {

Callers

nothing calls this directly

Calls 1

putMethod · 0.95

Tested by

no test coverage detected