From c890e06f01283e756c5a06e14893f02c89c76797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 21 May 2022 20:01:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=BB=84=E8=A3=85=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {