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

Function logs_dir

crates/chat-cli/src/util/paths.rs:143–151  ·  view source on GitHub ↗

The directory to all the logs

()

Source from the content-addressed store, hash-verified

141
142/// The directory to all the logs
143pub fn logs_dir() -> Result<PathBuf> {
144 cfg_if::cfg_if! {
145 if #[cfg(unix)] {
146 Ok(runtime_dir()?.join("qlog"))
147 } else if #[cfg(windows)] {
148 Ok(std::env::temp_dir().join("amazon-q").join("logs"))
149 }
150 }
151}
152
153/// Canonicalizes path given by expanding the path given
154pub fn canonicalizes_path(os: &Os, path_as_str: &str) -> Result<String> {

Callers 2

executeMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected