Skip to main content

get_or_create_session_dir

Function get_or_create_session_dir 

Source
pub fn get_or_create_session_dir(
    session_id: &str,
    base_dir: &Path,
) -> Result<(PathBuf, bool)>
Expand description

Get or create a session directory under base_dir/sessions/<session_id>.

Returns the directory path and whether it was newly created.