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

Function has_project_database

src/config.rs:349–351  ·  view source on GitHub ↗

Returns true when the old repo-local `TraceDecay` graph DB exists at this root.

(project_root: &Path)

Source from the content-addressed store, hash-verified

347
348/// Returns true when the old repo-local `TraceDecay` graph DB exists at this root.
349pub fn has_project_database(project_root: &Path) -> bool {
350 project_root.join(TRACEDECAY_DIR).join(DB_FILENAME).exists()
351}
352
353/// User-level data directory. Runtime storage is always rooted at
354/// `~/.tracedecay` unless `TRACEDECAY_DATA_DIR` explicitly overrides it.

Callers 3

discover_project_rootFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected