Skip to main content

session_dir

Function session_dir 

Source
pub fn session_dir(name: &str) -> Result<PathBuf>
Expand description

Full filesystem path for the named session’s WIRE_HOME root. Inside this dir the standard wire layout applies: config/wire/... and state/wire/....

Resolves the legacy v0.6 top-level layout only — joins the session name directly onto sessions_root. Operator-facing CLI paths that accept a user-typed session name should use find_session_home_by_name instead, which also handles the v0.13 by-key/<hash> layout where the on-disk dir name is a hash and the user-facing name is the persona handle derived from the card.