9 lines
183 B
Plaintext
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
|
||
|
}
|