MCPcopy Index your code
hub / github.com/rclone/rclone / Update

Method Update

backend/crypt/crypt.go:1091–1097  ·  view source on GitHub ↗

Update in to the object 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

1089
1090// Update in to the object with the modTime given of the given size
1091func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error {
1092 update := func(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
1093 return o.Object, o.Object.Update(ctx, in, src, options...)
1094 }
1095 _, err := o.f.put(ctx, in, src, options, update)
1096 return err
1097}
1098
1099// newDir returns a dir with the Name decrypted
1100func (f *Fs) newDir(ctx context.Context, dir fs.Directory) fs.Directory {

Callers

nothing calls this directly

Calls 2

UpdateMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected