MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / ensure_agents_dir

Method ensure_agents_dir

crates/chat-cli/src/util/paths.rs:299–305  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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()

Callers 1

migrateFunction · 0.80

Calls 3

agents_dirMethod · 0.80
create_dir_allMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected