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

Method is_internal_path

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

Check if a path is inside the .atomic directory.

(&self, path: P)

Source from the content-addressed store, hash-verified

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

Callers 1

add_pathMethod · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected