(path string)
| 340 | } |
| 341 | |
| 342 | func IsFile(path string) bool { |
| 343 | if err := CheckFile(path); err != nil { |
| 344 | return false |
| 345 | } |
| 346 | return true |
| 347 | } |
| 348 | |
| 349 | // CheckFile returns nil if the path is a file |
| 350 | func CheckFile(path string) error { |
no test coverage detected