(ctx context.Context, parentDir model.Obj, dirName string)
| 96 | } |
| 97 | |
| 98 | func (d *SMB) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error { |
| 99 | if err := d.checkConn(ctx); err != nil { |
| 100 | return err |
| 101 | } |
| 102 | fullPath := filepath.Join(parentDir.GetPath(), dirName) |
| 103 | err := d.fs.MkdirAll(fullPath, 0700) |
| 104 | if err != nil { |
| 105 | d.cleanLastConnTime() |
| 106 | return err |
| 107 | } |
| 108 | d.updateLastConnTime() |
| 109 | return nil |
| 110 | } |
| 111 | |
| 112 | func (d *SMB) Move(ctx context.Context, srcObj, dstDir model.Obj) error { |
| 113 | if err := d.checkConn(ctx); err != nil { |
nothing calls this directly
no test coverage detected