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

Function has_database

atomic-repository/src/repository/database.rs:56–58  ·  view source on GitHub ↗

Whether `dot_dir` holds a repository database in either layout.

(dot_dir: &Path)

Source from the content-addressed store, hash-verified

54
55/// Whether `dot_dir` holds a repository database in either layout.
56pub fn has_database(dot_dir: &Path) -> bool {
57 dot_dir.join(DATABASE_FILE).is_file() || dot_dir.join(LEGACY_PRISTINE_FILE).is_file()
58}
59
60/// Resolve the current layout for entry points that promise not to migrate.
61/// Ordinary opens use `ensure_database`; workspace preflight and native repair

Callers 10

run_importMethod · 0.85
find_remote_sandboxFunction · 0.85
detect_sandboxFunction · 0.85
discover_layoutFunction · 0.85
read_repository_pointerFunction · 0.85

Calls 1

is_fileMethod · 0.45

Tested by 1