fix: fix CreateDir bug

This commit is contained in:
dudaodong committed 2023-07-27 18:00:56 +08:00
1 parent b85545c584
commit 7cf358a0ec
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ func CreateFile(path string) bool {
// CreateDir create directory in absolute path. param `absPath` like /a/, /a/b/
func CreateDir(absPath string) error {
return os.MkdirAll(path.Dir(absPath), os.ModePerm)
return os.MkdirAll(absPath, os.ModePerm)
}
// IsDir checks if the path is directory or not