(&self, absolute_child_path: &Path)
| 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 | |
| 1582 | pub const BITFUN_RUNTIME_URI_PREFIX: &str = "bitfun://runtime/"; |
no test coverage detected