kleinTodo/common/files.go
Darius klein 716a65f019
All checks were successful
build and deploy kleinTodo / build (push) Successful in 15s
added register to client + fixed config bug + fixed register duplicate user bug
2026-01-11 21:05:37 +01:00

14 lines
173 B
Go

package common
import (
"os"
)
func FileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}
return !info.IsDir()
}