Returns the number of stored session files.
(&self)
| 590 | |
| 591 | /// Returns the number of stored session files. |
| 592 | pub fn count(&self) -> AgentResult<usize> { |
| 593 | Ok(self.list()?.len()) |
| 594 | } |
| 595 | |
| 596 | /// Returns the path to a session's JSON file. |
| 597 | fn session_path(&self, session_id: &str) -> PathBuf { |