Skip to main content

render_runtime_relative_path

Function render_runtime_relative_path 

Source
pub fn render_runtime_relative_path(
    base_dir: &Path,
    resolved: &Path,
) -> Result<String>
Expand description

Renders a resolved path as a runtime-relative path under base_dir.

The returned path is relative to the normalized base_dir. If resolved points outside base_dir, the function rejects it instead of returning a path with leading .. segments.