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 }