Skip to main content

normalize_path_within_workspace

Function normalize_path_within_workspace 

Source
pub fn normalize_path_within_workspace(
    path: &Path,
    workspace_root: &Path,
) -> Result<PathBuf, NormalizePathError>
Expand description

Normalize path beneath workspace_root while preventing parent traversal escapes.

This function is intended for paths that may not exist yet and therefore cannot be canonicalized directly.