FileExists determines if a file (NOT dir) exists.
(path string)
| 32 | |
| 33 | // FileExists determines if a file (NOT dir) exists. |
| 34 | func FileExists(path string) bool { |
| 35 | ret, isDir := FileOrDirExists(path) |
| 36 | return ret && !isDir |
| 37 | } |
| 38 | |
| 39 | // DirExists determines if a dir (NOT file) exists. |
| 40 | func DirExists(path string) bool { |
no test coverage detected