MCPcopy Index your code
hub / github.com/expr-lang/expr / FileExists

Method FileExists

internal/testify/assert/assertion_forward.go:457–462  ·  view source on GitHub ↗

FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.

(path string, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

455// FileExists checks whether a file exists in the given path. It also fails if
456// the path points to a directory or there is an error when trying to check the file.
457func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) bool {
458 if h, ok := a.t.(tHelper); ok {
459 h.Helper()
460 }
461 return FileExists(a.t, path, msgAndArgs...)
462}
463
464// FileExistsf checks whether a file exists in the given path. It also fails if
465// the path points to a directory or there is an error when trying to check the file.

Callers

nothing calls this directly

Calls 2

FileExistsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected