MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / pruneMissing

Method pruneMissing

internal/memory/sessionfiles.go:76–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func (s *SessionFiles) pruneMissing() {
77 kept := s.index[:0]
78 for _, r := range s.index {
79 if _, err := os.Stat(filepath.Join(s.root, r.Path)); err == nil {
80 kept = append(kept, r)
81 }
82 }
83 s.index = kept
84}
85
86func (s *SessionFiles) flushIndex() error {
87 out := struct {

Callers 1

NewSessionFilesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected