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

Function has_content_index

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

Check whether the content index exists and is usable.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

214
215/// Check whether the content index exists and is usable.
216pub fn has_content_index(repo_root: &Path) -> bool {
217 let index_dir = repo_root.join(".atomic").join("content-index");
218 // The manifest file is the authoritative marker for a built index.
219 index_dir.join("manifest.json").exists()
220}
221
222/// Return statistics about the content index.
223///

Callers 2

runMethod · 0.85
vault_kg_searchMethod · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected