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

Method open_existing

atomic-repository/src/repository/mod.rs:700–704  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

698 }
699
700 pub fn open_existing<P: AsRef<Path>>(path: P) -> Result<Self, RepositoryError> {
701 Self::wait_for_database(DEFAULT_DATABASE_WAIT, || {
702 Self::open_existing_once(path.as_ref())
703 })
704 }
705
706 fn open_existing_once(path: &Path) -> Result<Self, RepositoryError> {
707 if let Some((working_root, canonical, view)) = sandbox::detect_sandbox(path) {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected