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