aglob(
self,
pattern: str,
path: str | None = None,
) -> GlobResultFind files matching a glob pattern.
Supports ** (globstar) and {a,b} brace expansion. Uses
the same matching contract as grep()'s glob filter: a pattern
without / matches the basename at any depth (*.py matches
/src/app/main.py), a pattern containing / matches the path
relative to path (src/**/*.py), and a leading / anchors to
path (/*.py matches only its immediate children). A bare *
does not match dotfiles; use .* for those.