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.

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. A record an older mur wrote is left in place and not listed: its capsule may still be running, and this file is the only handle the mur that started it has.

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.