Put the object into the bucket Copy the reader in to the new object which is returned. The new object may have been created if an error is returned
(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption)
| 945 | // |
| 946 | // The new object may have been created if an error is returned |
| 947 | func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) { |
| 948 | // Temporary Object under construction |
| 949 | o := &Object{ |
| 950 | fs: f, |
| 951 | remote: src.Remote(), |
| 952 | } |
| 953 | return o, o.Update(ctx, in, src, options...) |
| 954 | } |
| 955 | |
| 956 | // PutStream uploads to the remote path with the modTime given of indeterminate size |
| 957 | func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) { |