glob(
self,
pattern: str,
path: str | None = None,
) -> GlobResultFind files matching a glob pattern.
Pattern matching uses the shared backend contract (same as grep include-glob):
/ match the basename at any depth under path
(e.g. '*.py' matches nested files)./ match paths relative to path, with **
support. A leading / anchors to the search root.. in the pattern segment.
** does not descend into dot-directories, so '*.yml' matches
.github/workflows/ci.yml while '**/*.yml' does not.