增加返回命令参数

This commit is contained in:
白茶清欢 2022-05-21 19:56:30 +08:00
parent cd60d4c81d
commit bfaa63d5c1

2
dir.go
View File

@ -44,7 +44,7 @@ func (d *dir) RecursiveCreate() *dir {
// Author : go_developer@163.com<白茶清欢>
//
// Date : 17:42 2022/5/21
func (d *dir) Create(dirPath string) define.Result {
func (d *dir) Create(dirPath string) *define.Result {
if !strings.HasPrefix(dirPath, "/") {
dirPath = strings.ReplaceAll(d.workDir, "//", "/")
}