MCPcopy Create free account
hub / github.com/astercloud/aster / Exists

Method Exists

pkg/tools/builtin/plan_file.go:107–110  ·  view source on GitHub ↗

Exists 检查计划文件是否存在

(path string)

Source from the content-addressed store, hash-verified

105
106// Exists 检查计划文件是否存在
107func (m *PlanFileManager) Exists(path string) bool {
108 _, err := os.Stat(path)
109 return err == nil
110}
111
112// List 列出所有计划文件
113func (m *PlanFileManager) List() ([]PlanFileMetadata, error) {

Callers

nothing calls this directly

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected