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

Method is_repository

atomic-repository/src/repository/mod.rs:1117–1119  ·  view source on GitHub ↗

Check if a path is inside an Atomic repository.

(path: P)

Source from the content-addressed store, hash-verified

1115
1116 /// Check if a path is inside an Atomic repository.
1117 pub fn is_repository<P: AsRef<Path>>(path: P) -> bool {
1118 Self::find_root(path.as_ref()).is_ok()
1119 }
1120
1121 /// Resolve the **canonical** `.atomic` directory for a working path
1122 /// *without* opening the database.

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected