Signed-off-by: kevin <kevin@lmve.net>

This commit is contained in:
2025-06-05 10:46:42 +08:00
parent a67a6c1711
commit d2c5d07dea
6 changed files with 172 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package models
import "os"
// 判断文件是否存在
func File_exists(path string) bool {
_, err := os.Stat(path)
if err != nil {
return !os.IsNotExist(err)
}
return true
}