DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
(path string, msgAndArgs ...interface{})
| 53 | // DirExists checks whether a directory exists in the given path. It also fails |
| 54 | // if the path is a file rather a directory or there is an error checking whether it exists. |
| 55 | func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool { |
| 56 | if h, ok := a.t.(tHelper); ok { |
| 57 | h.Helper() |
| 58 | } |
| 59 | return DirExists(a.t, path, msgAndArgs...) |
| 60 | } |
| 61 | |
| 62 | // DirExistsf checks whether a directory exists in the given path. It also fails |
| 63 | // if the path is a file rather a directory or there is an error checking whether it exists. |