0 Star 2 Fork 1

jmdvirus/jkgo

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
file.go 305 Bytes
一键复制 编辑 原始数据 按行查看 历史
jmdvirus 提交于 2019-08-13 12:16 +08:00 . newstructure
package helper
import (
"os"
)
func IsDirExists(path string) bool {
fi, err := os.Stat(path)
if err != nil {
return os.IsExist(err)
} else {
return fi.IsDir()
}
return false
}
func MkdirNotExist(path string) error {
if !IsDirExists(path) {
return os.MkdirAll(path, 0755)
}
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jmdvirus/jkgo.git
git@gitee.com:jmdvirus/jkgo.git
jmdvirus
jkgo
jkgo
a9e92229b988

搜索帮助