MCPcopy Create free account
hub / github.com/GCWing/BitFun / logical_child_path

Method logical_child_path

src/crates/execution/tool-contracts/src/framework.rs:1573–1579  ·  view source on GitHub ↗
(&self, absolute_child_path: &Path)

Source from the content-addressed store, hash-verified

1571 }
1572
1573 pub fn logical_child_path(&self, absolute_child_path: &Path) -> Option<String> {
1574 let scope = self.runtime_scope.as_deref()?;
1575 let root = self.runtime_root.as_ref()?;
1576 let relative = absolute_child_path.strip_prefix(root).ok()?;
1577 let relative_str = relative.to_string_lossy().replace('\\', "/");
1578 build_bitfun_runtime_uri(scope, &relative_str).ok()
1579 }
1580}
1581
1582pub const BITFUN_RUNTIME_URI_PREFIX: &str = "bitfun://runtime/";

Callers 1

call_implMethod · 0.80

Calls 3

build_bitfun_runtime_uriFunction · 0.70
replaceMethod · 0.65
okMethod · 0.45

Tested by

no test coverage detected