(&self)
| 297 | } |
| 298 | |
| 299 | pub async fn ensure_agents_dir(&self) -> Result<PathBuf> { |
| 300 | let dir = self.agents_dir()?; |
| 301 | if !dir.exists() { |
| 302 | self.os.fs.create_dir_all(&dir).await?; |
| 303 | } |
| 304 | Ok(dir) |
| 305 | } |
| 306 | |
| 307 | pub fn settings_path() -> Result<PathBuf> { |
| 308 | Ok(dirs::data_local_dir() |
no test coverage detected