LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentspermissionsglobMatch
Function●Since v1.15

globMatch

Copy
globMatch(path: string, pattern: string): boolean
View source on GitHub

Parameters

NameTypeDescription
path*string
pattern*string

Test whether path matches a glob pattern.

Supports:

  • ** — any number of directory levels
  • * — within a single path segment
  • {a,b} — brace expansion

Uses micromatch with dot: true so dotfiles are matched by default.