DirExists returns true if a directory exists at the given path.
(dirname string)
| 194 | |
| 195 | // DirExists returns true if a directory exists at the given path. |
| 196 | func DirExists(dirname string) bool { |
| 197 | info, err := os.Stat(dirname) |
| 198 | if os.IsNotExist(err) { |
| 199 | return false |
| 200 | } |
| 201 | return info.IsDir() |
| 202 | } |
| 203 | |
| 204 | func LinkTestApps(t *testing.T, workingDirPath string, testAppsToLink map[string]string) func() { |
| 205 | MakeDirectoryOrFail(t, workingDirPath) |
no outgoing calls
no test coverage detected