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

Function is_relative_path

src/apps/desktop/src/api/tool_api.rs:229–233  ·  view source on GitHub ↗
(value: Option<&serde_json::Value>)

Source from the content-addressed store, hash-verified

227}
228
229fn is_relative_path(value: Option<&serde_json::Value>) -> bool {
230 value
231 .and_then(|v| v.as_str())
232 .is_some_and(|path| !path.is_empty() && !PathBuf::from(path).is_absolute())
233}
234
235fn tool_requires_workspace_path(tool_name: &str, input: &serde_json::Value) -> bool {
236 match tool_name {

Callers 1

Calls 2

as_strMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected