2 Star 0 Fork 0

g_boot/gfextend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
file.go 410 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
* @Descripttion:
* @version:
* @Author: lfzxs@qq.com
* @Date: 2022-12-20 20:29:59
* @LastEditors: lfzxs@qq.com
* @LastEditTime: 2022-12-20 20:35:14
*/
package system
import (
"os"
)
/**
* 文件是否存在
* path: 文件路径或文件夹路径
*/
func FileExists(path string) bool {
_, err := os.Stat(path) //os.Stat获取文件信息
if os.IsNotExist(err) {
return false
}
return true
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/g_boot/gfextend.git
git@gitee.com:g_boot/gfextend.git
g_boot
gfextend
gfextend
v1.3.3

搜索帮助