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

Method is_internal_path

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

Check if a path is inside the .atomic directory.

(&self, path: P)

Source from the content-addressed store, hash-verified

808
809 /// Check if a path is inside the .atomic directory.
810 pub fn is_internal_path<P: AsRef<Path>>(&self, path: P) -> bool {
811 path.as_ref().starts_with(&self.dot_dir)
812 }
813}

Callers 1

add_pathMethod · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected