MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Mv

Method Mv

agent/utils/files/file_op.go:622–627  ·  view source on GitHub ↗
(oldPath, dstPath string)

Source from the content-addressed store, hash-verified

620}
621
622func (f FileOp) Mv(oldPath, dstPath string) error {
623 if err := cmd.NewCommandMgr(cmd.WithTimeout(cmdRecursiveTimeout)).Run("mv", oldPath, dstPath); err != nil {
624 return err
625 }
626 return nil
627}
628
629func (f FileOp) Copy(src, dst string) error {
630 if src = path.Clean("/" + src); src == "" {

Callers 7

CompressMethod · 0.95
CompressMethod · 0.95
CompressMethod · 0.95
CompressMethod · 0.95
CreateMethod · 0.95
ReduceMethod · 0.95
ClearMethod · 0.95

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected