MCPcopy Index your code
hub / github.com/mudler/LocalAI / ExistsInPath

Function ExistsInPath

pkg/utils/path.go:10–13  ·  view source on GitHub ↗
(path string, s string)

Source from the content-addressed store, hash-verified

8)
9
10func ExistsInPath(path string, s string) bool {
11 _, err := os.Stat(filepath.Join(path, s))
12 return err == nil
13}
14
15func InTrustedRoot(path string, trustedRoot string) error {
16 for path != "/" {

Callers 2

existsInModelPathMethod · 0.92
ExistsInModelPathMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected