MCPcopy
hub / github.com/expr-lang/expr / DirExists

Method DirExists

internal/testify/require/require_forward.go:57–62  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

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.
57func (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.

Callers

nothing calls this directly

Calls 2

DirExistsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected