MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / code_project_root_exists

Function code_project_root_exists

src/migrate/registry.rs:147–149  ·  view source on GitHub ↗

Returns true if the project's canonical or display root still exists.

(project: &CodeProjectRecord)

Source from the content-addressed store, hash-verified

145
146/// Returns true if the project's canonical or display root still exists.
147pub fn code_project_root_exists(project: &CodeProjectRecord) -> bool {
148 Path::new(&project.canonical_root).exists() || Path::new(&project.display_root).exists()
149}
150
151/// Filters registry rows that are stale under `scope`, restricted to
152/// canonical roots under one of `prefixes` (an empty slice means no

Callers 3

stale_code_projectsFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected