MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / resolved_profile_root

Method resolved_profile_root

src/tracedecay.rs:62–74  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

60
61impl TraceDecayOpenOptions {
62 fn resolved_profile_root(&self) -> Result<PathBuf> {
63 if let Some(profile_root) = &self.profile_root {
64 return Ok(profile_root.clone());
65 }
66 if let Some(parent) = self
67 .global_db_path
68 .as_deref()
69 .and_then(std::path::Path::parent)
70 {
71 return Ok(parent.to_path_buf());
72 }
73 storage::default_profile_root()
74 }
75
76 async fn open_global_db(&self) -> Option<GlobalDb> {
77 match self.global_db_path.as_deref() {

Calls 1

default_profile_rootFunction · 0.85

Tested by

no test coverage detected