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

Method ensureAgentDir

pkg/store/json.go:65–68  ·  view source on GitHub ↗

ensureAgentDir 确保Agent目录存在

(agentID string)

Source from the content-addressed store, hash-verified

63
64// ensureAgentDir 确保Agent目录存在
65func (js *JSONStore) ensureAgentDir(agentID string) error {
66 dir := js.agentDir(agentID)
67 return os.MkdirAll(dir, 0755)
68}
69
70// saveJSON 保存JSON文件
71func (js *JSONStore) saveJSON(path string, data any) error {

Callers 5

SaveMessagesMethod · 0.95
SaveToolCallRecordsMethod · 0.95
SaveSnapshotMethod · 0.95
SaveInfoMethod · 0.95
SaveTodosMethod · 0.95

Calls 1

agentDirMethod · 0.95

Tested by

no test coverage detected