LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithsandboxSandboxglob
Method●Since v0.13

glob

Find files and directories matching a pattern.

Copy
glob(
  pattern: string,
  path: string,
  options: GlobOptions = {}
): Promise<GlobResult>

Parameters

NameTypeDescription
pattern*string

Match against each entry's path relative to path. Supports ** for any number of segments plus *, ? and [...] within one segment.

path*string

Absolute path of the directory to search under.

optionsGlobOptions
Default:{}

Result cap and request options.

View source on GitHub