Skip to main content

list

Function list 

Source
pub fn list() -> Result<Vec<RunningRecord>, String>
Expand description

Every record that parses, most recent session first.

Session ids are time-ordered, so a lexical sort descending is chronological. A file that does not parse is unlinked on the way past: nothing can verify it, and leaving it would mean carrying a permanent unreadable entry in a directory whose whole purpose is to be read.

The Err is the directory being unusable — ~/.murmur/running cannot be created, held at 0700, or listed — and names the path and the OS error. An empty machine is Ok with no records, so a caller can tell the two apart.