MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_content_index

Function has_content_index

atomic-repository/src/content_search.rs:529–533  ·  view source on GitHub ↗

Check whether the content index exists and is usable.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

527
528/// Check whether the content index exists and is usable.
529pub fn has_content_index(repo_root: &Path) -> bool {
530 let index_dir = repo_root.join(".atomic").join("content-index");
531 // The manifest file is the authoritative marker for a built index.
532 index_dir.join("manifest.json").exists()
533}
534
535/// Return statistics about the content index.
536///

Callers 3

runMethod · 0.85
vault_kg_search_innerMethod · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected