mkdirParent creates the parent directory of remote
(ctx context.Context, remote string)
| 423 | |
| 424 | // mkdirParent creates the parent directory of remote |
| 425 | func (f *Fs) mkdirParent(ctx context.Context, remote string) (dirNode *mega.Node, leaf string, err error) { |
| 426 | rootNode, err := f.findRoot(ctx, true) |
| 427 | if err != nil { |
| 428 | return nil, "", err |
| 429 | } |
| 430 | parent, leaf := path.Split(remote) |
| 431 | dirNode, err = f.mkdir(ctx, rootNode, parent) |
| 432 | return dirNode, leaf, err |
| 433 | } |
| 434 | |
| 435 | // findRoot looks up the root directory node and returns it. |
| 436 | // |
no test coverage detected