Skip to main content

resolve_in_workspace

Function resolve_in_workspace 

Source
pub fn resolve_in_workspace(
    path: &str,
    cwd: &Path,
    workspace_root: &Path,
) -> Result<PathBuf, PathSecurityError>
Expand description

Resolve a user-supplied path string (possibly empty, relative, or ~) into a workspace-confined absolute path. Empty input resolves to the workspace root. Used by the read-only search/glob tools to scope and confine their root.