go_sysutils/paths/TODO

9 lines
183 B
Plaintext
Raw Normal View History

2021-03-31 15:18:42 -04:00
https://golangcode.com/check-if-a-file-exists/
E.G.
func fileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}