()
| 71 | } |
| 72 | |
| 73 | fn default_local_cache() -> Result<String> { |
| 74 | // The default value is a directory named "sym" immediately below the program directory |
| 75 | // of the calling application. This is sometimes referred to as the default local cache. |
| 76 | let current_path = current_exe()?; |
| 77 | let parent_path = current_path |
| 78 | .parent() |
| 79 | .ok_or_else(|| anyhow!("No parent to current exe"))?; |
| 80 | let mut cache_path = PathBuf::from(parent_path); |
| 81 | cache_path.push("sym"); |
| 82 | return Ok(cache_path |
| 83 | .to_str() |
| 84 | .ok_or_else(|| anyhow!("Could not convert cache path to string"))? |
| 85 | .to_string()); |
| 86 | } |
| 87 | |
| 88 | fn active_local_cache(view: Option<&BinaryView>) -> Result<String> { |
| 89 | // Check the local symbol store |
no test coverage detected