go_sysutils/paths/TODO
2021-03-31 15:18:42 -04:00

9 lines
183 B
Plaintext

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
}