This commit is contained in:
2025-10-21 20:55:29 +08:00
parent 37037acac9
commit 625beff086
13 changed files with 568 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
package models
import "os"
// 判断文件是否存在
func FileExists(path string) bool {
_, err := os.Stat(path)
if err != nil {
return !os.IsNotExist(err)
}
return true
}