[ Cmii ] [ Octopus ] - 实际项目

This commit is contained in:
zeaslity
2024-03-20 11:28:19 +08:00
committed by zeaslity
parent 6b4616690c
commit 8e6f09d522
34 changed files with 350 additions and 537 deletions

View File

@@ -81,3 +81,9 @@ func WordSpaceCompletion(source string, totalLength int) string {
return source
}
// FileExists 文件存在返回true不存在返回false如果文件是一个目录也返回false
func FileExists(fileFullPath string) bool {
_, err := os.Stat(fileFullPath)
return err == nil
}