MCPcopy Create free account
hub / github.com/GCWing/BitFun / workspace_path_buf

Method workspace_path_buf

src/apps/cli/src/agent/core_adapter.rs:56–63  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

54 }
55
56 pub fn workspace_path_buf(&self) -> PathBuf {
57 self.workspace_path
58 .try_lock()
59 .ok()
60 .and_then(|guard| guard.clone())
61 .or_else(|| std::env::current_dir().ok())
62 .unwrap_or_else(|| PathBuf::from("."))
63 }
64
65 pub fn workspace_path_string(&self) -> String {
66 self.workspace_path_buf().to_string_lossy().to_string()

Calls 2

okMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected