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

Method FileExists

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

FileExists checks if a file exists in the project directory. The filename is relative to the project directory.

(filename string)

Source from the content-addressed store, hash-verified

91// FileExists checks if a file exists in the project directory.
92// The filename is relative to the project directory.
93func (p *ProjectDir) FileExists(filename string) bool {
94 _, err := os.Stat(p.Join(filename))
95 return err == nil
96}
97
98// IsVerbose returns whether verbose mode is enabled for this project directory.
99func (p *ProjectDir) IsVerbose() bool {

Callers 8

AddToolMcpFunction · 0.80
TestInitBuildWorkflowFunction · 0.80

Calls 1

JoinMethod · 0.95