On this page
article
glob — Pathname Pattern Matching
Find files by pattern.
Overview
Find files by pattern.
Quick Example
glob.glob('**/*.py', recursive=True)
When to Use
Use this module when you need built-in support without adding third-party dependencies.
Common Tasks
- Read the official docs: docs.python.org/3/library/glob.html
- Combine with related modules in the Cookbook
- Prefer stdlib before reaching for PyPI packages