Exists determine whether the file exists
(name string)
| 86 | |
| 87 | // Exists determine whether the file exists |
| 88 | func Exists(name string) bool { |
| 89 | if _, err := os.Stat(name); err != nil { |
| 90 | if os.IsNotExist(err) { |
| 91 | return false |
| 92 | } |
| 93 | } |
| 94 | return true |
| 95 | } |
| 96 | |
| 97 | // CreateNestedDirectory create nested directory |
| 98 | func CreateNestedDirectory(path string) error { |
no test coverage detected