MCPcopy Index your code
hub / github.com/coder/coder / isAbsolutePath

Function isAbsolutePath

coderd/x/chatd/chattool/planpath.go:81–83  ·  view source on GitHub ↗

chatd consumes agent-normalized POSIX paths. Workspace agents are expected to convert separators to forward slashes before these helpers run. isAbsolutePath reports whether p is an absolute POSIX path.

(p string)

Source from the content-addressed store, hash-verified

79
80// isAbsolutePath reports whether p is an absolute POSIX path.
81func isAbsolutePath(p string) bool {
82 return path.IsAbs(p)
83}
84
85// looksLikePlanFileName reports whether the base name of requestedPath
86// is "plan.md" (case-insensitive), ignoring the directory component.

Callers 4

executeEditFilesToolFunction · 0.85
TestIsAbsolutePathFunction · 0.85
executeWriteFileToolFunction · 0.85
executeProposePlanToolFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsAbsolutePathFunction · 0.68