Check whether the content index exists and is usable.
(repo_root: &Path)
| 214 | |
| 215 | /// Check whether the content index exists and is usable. |
| 216 | pub 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 | /// |
no test coverage detected