PutUnchecked uploads the object
(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption)
| 1513 | |
| 1514 | // PutUnchecked uploads the object |
| 1515 | func (f *Fs) PutUnchecked(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) { |
| 1516 | do := f.Fs.Features().PutUnchecked |
| 1517 | if do == nil { |
| 1518 | return nil, errors.New("can't PutUnchecked") |
| 1519 | } |
| 1520 | fs.Debugf(f, "put data unchecked in '%s'", src.Remote()) |
| 1521 | return f.put(ctx, in, src, options, do) |
| 1522 | } |
| 1523 | |
| 1524 | // PutStream uploads the object |
| 1525 | func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) { |