Returns the number of stored session files.
(&self)
| 618 | |
| 619 | /// Returns the number of stored session files. |
| 620 | pub fn count(&self) -> AgentResult<usize> { |
| 621 | Ok(self.list()?.len()) |
| 622 | } |
| 623 | |
| 624 | /// Returns the path to a session's JSON file. |
| 625 | fn session_path(&self, session_id: &str) -> PathBuf { |