pub fn save_session_in(session: &Session, dir: &Path) -> Result<(), PawError>
Atomically writes a session to the given directory.