修复创建目录组装错误问题

This commit is contained in:
zhangdeman committed 2022-05-21 20:01:58 +08:00
1 parent 22318b83cc
commit c890e06f01
1 file changed
+1 -1
+1 -1
View File
@@ -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 {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.