Skip to main content

session_dir

Function session_dir 

Source
pub fn session_dir(data_dir: &Path, session_id: &str) -> PathBuf
Expand description

The on-disk directory for one session’s event log and blobs, per spec §4.1: <data_dir>/sessions/<session_id>/.

§Examples

use std::path::Path;

let dir = zeph_session::session_dir(Path::new(".zeph/sessions"), "abc-123");
assert_eq!(dir, Path::new(".zeph/sessions/sessions/abc-123"));