Skip to main content

state_root

Function state_root 

Source
pub fn state_root(
    env: &dyn Fn(&str) -> Option<String>,
) -> Result<PathBuf, Error>
Expand description

Resolve the shared state root from an explicit setting or the user’s absolute home.

A default never depends on the working directory. Explicit state settings may be relative because the caller deliberately selected their location.