Skip to main content

select

Function select 

Source
pub fn select(paths: Vec<String>, preferred: &[String]) -> Option<RootSelection>
Expand description

Choose among paths (absolute directory paths, in host order).

Only existing directories count. The rule is the one sessions always used: the first path with a project marker, else the first safe directory. A broad or unsafe directory (HOME, /, agent dirs) is never a fallback and is listed as a candidate only when a marker made it the choice. A preferred root (most recent first) that is among the candidates wins over the rule.