MCPcopy Index your code
hub / github.com/AI45Lab/Code / glob

Method glob

sdk/node/src/lib.rs:3808–3815  ·  view source on GitHub ↗
(&self, pattern: String)

Source from the content-addressed store, hash-verified

3806 /// Search for files matching a glob pattern.
3807 #[napi]
3808 pub async fn glob(&self, pattern: String) -> napi::Result<Vec<String>> {
3809 let session = self.inner.clone();
3810 get_runtime()
3811 .spawn(async move { session.glob(&pattern).await })
3812 .await
3813 .map_err(|e| napi::Error::from_reason(format!("Task join error: {e}")))?
3814 .map_err(|e| napi::Error::from_reason(format!("{e}")))
3815 }
3816
3817 /// Search file contents with a regex pattern.
3818 #[napi]

Callers 2

testDirectToolCallsMethod · 0.45

Calls 3

get_runtimeFunction · 0.70
cloneMethod · 0.45
spawnMethod · 0.45

Tested by

no test coverage detected