FileExists checks to see if a file exist at the provided path.
(path string)
| 151 | |
| 152 | // FileExists checks to see if a file exist at the provided path. |
| 153 | func fileExists(path string) bool { |
| 154 | fileStat, err := os.Stat(path) |
| 155 | if err != nil { |
| 156 | return false |
| 157 | } |
| 158 | return !fileStat.IsDir() |
| 159 | } |
no outgoing calls
no test coverage detected