Skip to main content

path_scope

Function path_scope 

pub fn path_scope(base: &str, path: Option<&str>) -> String
Expand description

The scope of a path argument under base: base/<path> with the path trimmed (the tools trim it before they open it) and normalised lexically (a leading ./, a . or an empty component, and a trailing / are dropped), and base itself when there is no path, when it names nothing but the root, when it is absolute, or when it has a .. component (it may leave the place the scope names, so it widens to all of base).

What #[tool(parallel = "read", path = "path")] uses.