internal/lib/fs/file.go (
6
lines of code) (
raw
):
package fs import "os" // Checks if a given file exists. func FileExists(path string) bool { _, err := os.Stat(path) return !os.IsNotExist(err) }