diff --git a/dir.go b/dir.go index 4950c8b..838a055 100644 --- a/dir.go +++ b/dir.go @@ -46,7 +46,7 @@ func (d *dir) RecursiveCreate() *dir { // Date : 17:42 2022/5/21 func (d *dir) Create(dirPath string) *define.Result { if !strings.HasPrefix(dirPath, "/") { - dirPath = strings.ReplaceAll(d.workDir, "//", "/") + dirPath = strings.ReplaceAll(d.workDir+"/"+dirPath, "//", "/") } paramList := make([]string, 0) if d.recursiveCreate {