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

Method is_internal_path

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

Check if a path is inside the .atomic directory.

(&self, path: P)

Source from the content-addressed store, hash-verified

771
772 /// Check if a path is inside the .atomic directory.
773 pub fn is_internal_path<P: AsRef<Path>>(&self, path: P) -> bool {
774 path.as_ref().starts_with(&self.dot_dir)
775 }
776}

Callers 1

add_pathMethod · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected