A:更新工具类
This commit is contained in:
1 parent
39823db70a
commit
bae2721935
14 files changed
+598
-26
No files matched your search
@@ -34,7 +34,7 @@ type fileUtilsStruct struct{}
|
||||
// FileUtils 是对外暴露的文件工具对象
|
||||
var FileUtils = fileUtilsStruct{}
|
||||
|
||||
// 1. 检查文件或目录是否存在
|
||||
// Exists 1. 检查文件或目录是否存在
|
||||
func (fileUtilsStruct) Exists(path string) bool {
|
||||
_, err := os.Stat(path)
|
||||
return !os.IsNotExist(err)
|
||||
|
||||
Reference in new issue
Block a user