MCPcopy Index your code
hub / github.com/SummerSec/SpringExploit / Mkdir

Function Mkdir

cmd/commons/utils/file.go:6–14  ·  view source on GitHub ↗

Mkdir 创建文件夹

(dir string)

Source from the content-addressed store, hash-verified

4
5// Mkdir 创建文件夹
6func Mkdir(dir string) error {
7 if _, err := os.Stat(dir); os.IsNotExist(err) {
8 err := os.MkdirAll(dir, 0755)
9 if err != nil {
10 return err
11 }
12 }
13 return nil
14}

Callers 2

SaveLogsFunction · 0.92
SaveToFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected