Creates from the parameters passed in a half finished Object which must have setMetaData called on it Returns the dirNode, object, leaf and error. Used to create new objects
(ctx context.Context, remote string, modTime time.Time, size int64)
| 594 | // |
| 595 | // Used to create new objects |
| 596 | func (f *Fs) createObject(ctx context.Context, remote string, modTime time.Time, size int64) (o *Object, dirNode *mega.Node, leaf string, err error) { |
| 597 | dirNode, leaf, err = f.mkdirParent(ctx, remote) |
| 598 | if err != nil { |
| 599 | return nil, nil, leaf, err |
| 600 | } |
| 601 | // Temporary Object under construction |
| 602 | o = &Object{ |
| 603 | fs: f, |
| 604 | remote: remote, |
| 605 | } |
| 606 | return o, dirNode, leaf, nil |
| 607 | } |
| 608 | |
| 609 | // Put the object |
| 610 | // |
no test coverage detected