pub fn ensure_safe_rel_path(rel: &str) -> Result<PathBuf, ExplorerError>Expand description
Validate that rel is a safe, non-escaping relative path.
Returns the normalised PathBuf on success, or ExplorerError::InvalidRelPath
if the path is absolute or contains .. / prefix components.