This commit is contained in:
xxj
2025-11-19 22:09:12 +08:00
parent 3f82a456d4
commit 6880e7be0d
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"strings"
@@ -23,7 +22,7 @@ func CheckFileIsExist(filename string) bool {
// BuildDir 创建目录
func BuildDir(absDir string) error {
return os.MkdirAll(path.Dir(absDir), os.ModePerm) //生成多级目录
return os.MkdirAll(absDir, os.ModePerm) //生成多级目录
}
// DeleteFile 删除文件或文件夹(软删除.不会真正删除.添加后缀.bak)