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

Function has_content_index

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

Check whether the content index exists and is usable.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

325
326/// Check whether the content index exists and is usable.
327pub fn has_content_index(repo_root: &Path) -> bool {
328 let index_dir = repo_root.join(".atomic").join("content-index");
329 // The manifest file is the authoritative marker for a built index.
330 index_dir.join("manifest.json").exists()
331}
332
333/// Return statistics about the content index.
334///

Callers 3

runMethod · 0.85
vault_kg_searchMethod · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected