Skip to main content

count_entries

Function count_entries 

Source
pub fn count_entries(path: &Path) -> Result<usize>
Expand description

Count the number of non-header entries in a session file (by counting non-empty lines and subtracting 1 for the header).

Returns 0 if the file is empty.