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

Method is_internal_path

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

Check if a path is inside the .atomic directory.

(&self, path: P)

Source from the content-addressed store, hash-verified

646
647 /// Check if a path is inside the .atomic directory.
648 pub fn is_internal_path<P: AsRef<Path>>(&self, path: P) -> bool {
649 path.as_ref().starts_with(&self.dot_dir)
650 }
651}

Callers 1

add_pathMethod · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected