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)
| 1089 | |
| 1090 | // Update in to the object with the modTime given of the given size |
| 1091 | func (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 |
| 1100 | func (f *Fs) newDir(ctx context.Context, dir fs.Directory) fs.Directory { |