MCPcopy
hub / github.com/kagent-dev/kagent / Join

Method Join

go/core/cli/internal/common/fs/project.go:87–89  ·  view source on GitHub ↗

Join joins path elements with the project directory. This is a convenience method for constructing paths within the project.

(elem ...string)

Source from the content-addressed store, hash-verified

85// Join joins path elements with the project directory.
86// This is a convenience method for constructing paths within the project.
87func (p *ProjectDir) Join(elem ...string) string {
88 return filepath.Join(append([]string{p.path}, elem...)...)
89}
90
91// FileExists checks if a file exists in the project directory.
92// The filename is relative to the project directory.

Calls

no outgoing calls