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

Function existing

atomic-repository/src/repository/database.rs:106–114  ·  view source on GitHub ↗
(database: PathBuf, dot_dir: &Path)

Source from the content-addressed store, hash-verified

104}
105
106fn existing(database: PathBuf, dot_dir: &Path) -> Result<PathBuf, RepositoryError> {
107 if database.is_file() {
108 Ok(database)
109 } else {
110 Err(RepositoryError::NotFound {
111 path: dot_dir.display().to_string(),
112 })
113 }
114}
115
116fn merge_legacy(dot_dir: &Path, legacy: &LegacyDatabases) -> Result<(), RepositoryError> {
117 let merging = dot_dir.join(MERGING_FILE);

Callers 2

require_current_databaseFunction · 0.85
ensure_databaseFunction · 0.85

Calls 2

displayMethod · 0.80
is_fileMethod · 0.45

Tested by

no test coverage detected