MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Exists

Function Exists

internal/pathutil/pathutil.go:75–81  ·  view source on GitHub ↗

Exists reports whether the file at path exists (and is reachable via Stat). Symlink targets are followed; broken symlinks return false.

(path string)

Source from the content-addressed store, hash-verified

73// Exists reports whether the file at path exists (and is reachable via Stat).
74// Symlink targets are followed; broken symlinks return false.
75func Exists(path string) bool {
76 if path == "" {
77 return false
78 }
79 _, err := os.Stat(path)
80 return err == nil
81}

Callers 14

LoadDefaultFunction · 0.92
PathForMethod · 0.92
PathForMethod · 0.92
PathForMethod · 0.92
ListFilesMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
configListCommandMethod · 0.92
TestExistsFunction · 0.92
UninstallInstructionFunction · 0.92
UninstallFromAppFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestExistsFunction · 0.74