MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / is_external_path

Method is_external_path

crates/opencode-tool/src/tool.rs:666–673  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

664 }
665
666 pub fn is_external_path(&self, path: &str) -> bool {
667 let abs_path = if std::path::Path::new(path).is_absolute() {
668 path.to_string()
669 } else {
670 format!("{}/{}", self.directory, path)
671 };
672 !abs_path.starts_with(&self.project_root)
673 }
674}
675
676impl std::fmt::Debug for ToolContext {

Callers 8

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected