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