lib/os: patch MkdirAll

This commit is contained in:
luoliwoshang
2024-08-12 21:36:29 +08:00
parent 6484a8e6a4
commit 8bd6e1d119
6 changed files with 174 additions and 1 deletions

11
_demo/mkdirdemo/mkdir.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"os"
"path/filepath"
)
func main() {
dirPath := filepath.Join("temp", "myapp", "data", "logs")
os.MkdirAll(dirPath, 0755)
}