MCPcopy
hub / github.com/puma/puma-dev / DirExists

Function DirExists

dev/devtest/testutils.go:196–202  ·  view source on GitHub ↗

DirExists returns true if a directory exists at the given path.

(dirname string)

Source from the content-addressed store, hash-verified

194
195// DirExists returns true if a directory exists at the given path.
196func 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
204func LinkTestApps(t *testing.T, workingDirPath string, testAppsToLink map[string]string) func() {
205 MakeDirectoryOrFail(t, workingDirPath)

Callers 1

RemoveDirectoryOrFailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected