MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / default_local_cache

Function default_local_cache

plugins/pdb-ng/src/lib.rs:73–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73fn 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
88fn active_local_cache(view: Option<&BinaryView>) -> Result<String> {
89 // Check the local symbol store

Callers 1

active_local_cacheFunction · 0.85

Calls 2

parentMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected