Method
MakeDir
(ctx context.Context, parentDir model.Obj, dirName string)
Source from the content-addressed store, hash-verified
| 72 | } |
| 73 | |
| 74 | func (d *FTP) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error { |
| 75 | if err := d.login(); err != nil { |
| 76 | return err |
| 77 | } |
| 78 | return d.conn.MakeDir(encode(stdpath.Join(parentDir.GetPath(), dirName), d.Encoding)) |
| 79 | } |
| 80 | |
| 81 | func (d *FTP) Move(ctx context.Context, srcObj, dstDir model.Obj) error { |
| 82 | if err := d.login(); err != nil { |
Callers
nothing calls this directly
Tested by
no test coverage detected