增加返回命令参数
This commit is contained in:
parent
cd60d4c81d
commit
bfaa63d5c1
2
dir.go
2
dir.go
@ -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, "//", "/")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user