pub fn record_storage_root(
sessions_dir: &Path,
session_id: &str,
root: &Path,
) -> Result<bool, Box<dyn Error>>Expand description
Record root as the session’s SessionState::storage_root unless one
is already recorded: SessionStart fires again on resume, /clear and
compaction, from wherever the shell has moved, and the session dir must
not move with it. Returns whether it wrote.