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

Method Delete

pkg/memory/project/file_store.go:68–71  ·  view source on GitHub ↗

Delete 删除项目记忆

(ctx context.Context, projectID string)

Source from the content-addressed store, hash-verified

66
67// Delete 删除项目记忆
68func (s *FileStore) Delete(ctx context.Context, projectID string) error {
69 filePath := s.getFilePath(projectID)
70 return os.Remove(filePath)
71}
72
73// Exists 检查项目记忆是否存在
74func (s *FileStore) Exists(ctx context.Context, projectID string) (bool, error) {

Callers

nothing calls this directly

Calls 2

getFilePathMethod · 0.95
RemoveMethod · 0.45

Tested by

no test coverage detected