๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ glob.html
glob โ€” Unix style pathname pattern expansion โ€” Python 3.15.2 documentation
The glob module finds pathnames using pattern matching rules similar to the Unix shell. No tilde expansion is done, but *, ?, and character ranges expressed with [] will be correctly matched.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_module_glob.asp
Python glob Module
Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Training ... import glob import tempfile import os with tempfile.TemporaryDirectory() as d: open(os.path.join(d, "Emil.txt"), "w").close() open(os.path.join(d, "Linus.txt"), "w").close() open(os.path.join(d, "Tobias.py"), "w").close() hits = glob.glob(os.path.join(d, "*.txt")) print(sorted(os.path.basename(x) for x in hits)) Try it Yourself ยป
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-use-glob-function-to-find-files-recursively-in-python
How to use Glob() Function to Find Files Recursively in Python - GeeksforGeeks
October 3, 2025 - Efficient: According to benchmarks, glob is generally faster than manual directory scanning. Simple API: Easy to use for common and complex file searches. Wildcard support: Search with flexible patterns, not just exact names. From Python 3.5 onwards, the glob module supports recursive searching using the ** pattern combined with the recursive=True argument.
๐ŸŒ
Real Python
realpython.com โ€บ ref โ€บ stdlib โ€บ glob
glob | Python Standard Library โ€“ Real Python
The Python glob module provides tools to find path names matching specified patterns that follow Unix shell rules.
๐ŸŒ
Built In
builtin.com โ€บ software-engineering-perspectives โ€บ glob-in-python
Glob in Python Explained | Built In
Glob is a Python module thatโ€™s used to search for file path names that match a specific pattern.
๐ŸŒ
Earth Data Science
earthdatascience.org โ€บ home
Use the OS and Glob Python Packages to Manipulate File Paths | Earth Data Science - Earth Lab
November 12, 2020 - glob is a powerful tool in Python to help with file management and filtering.
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python
How to Use glob() in Python | note.nkmk.me
July 28, 2023 - In Python, the glob module allows you to get a list or an iterator of file and directory paths that satisfy certain conditions using special characters like the wildcard *. glob โ€” Unix style pathname ...
๐ŸŒ
Georgefox
cs.georgefox.edu โ€บ hs_contest โ€บ docs โ€บ python-3.10.12-docs โ€บ library โ€บ glob.html
glob โ€” Unix style pathname pattern expansion โ€” Python 3.10.12 documentation
The Python Standard Library ยป ยท File and Directory Access ยป ยท glob โ€” Unix style pathname pattern expansion ยท | Theme ยท Auto ยท Light ยท Dark | Source code: Lib/glob.py ยท The glob module finds all the pathnames matching a specified pattern according to the rules used by the Unix shell, ...
Find elsewhere
๐ŸŒ
Python Module of the Week
pymotw.com โ€บ 2 โ€บ glob
glob โ€“ Filename pattern matching - Python Module of the Week
Now available for Python 3! Buy the book! ... Even though the glob API is very simple, the module packs a lot of power. It is useful in any situation where your program needs to look for a list of files on the filesystem with names matching a pattern.
๐ŸŒ
PYnative
pynative.com โ€บ home โ€บ python โ€บ python glob: filename pattern matching
Python Glob: Filename Pattern Matching โ€“ PYnative
June 17, 2021 - Python glob.glob() method returns a list of files or folders that matches the path specified in the pathname argument.
๐ŸŒ
Michael Currin
michaelcurrin.github.io โ€บ dev-cheatsheets โ€บ cheatsheets โ€บ python โ€บ files-and-paths โ€บ glob.html
Glob | Dev Cheatsheets
Cheatsheets / Python / Files and paths / Glob ยท See also the globbing in the Shell section of this guide. glob in the Python 3 docs. From this StackOverflow page, where my answer was the highest voted. Provide a path as a single argument. You get results as absolute paths.
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ glob() in python
glob() in Python - Scaler Topics
May 4, 2023 - The term โ€œglobโ€ refers to methods for matching files that include specific patterns in line with UNIX shell-related expansion rules. In Python, the glob module is used similarly to find, locate, and search for all of the files that are present in a system.
๐ŸŒ
Learn By Example
learnbyexample.org โ€บ python-glob-glob-function
Python glob.glob() Function - Learn By Example
April 14, 2024 - The glob module in Python includes a function glob.glob(), which is used to retrieve files matching a specified pattern, eliminating the need for manual filtering of directory listing results.
๐ŸŒ
Medium
medium.com โ€บ django-unleashed โ€บ python-file-handling-with-the-glob-module-a-comprehensive-guide-10b209fcbfbb
Python File Handling with the glob Module: A Comprehensive Guide | by Mehedi Khan | Django Unleashed | Medium
February 15, 2025 - In Python, handling files and ... application. The glob module in Python is a powerful tool that simplifies the process of finding files that match a specific pattern in a directory....
๐ŸŒ
Python
docs.python.org โ€บ 3.9 โ€บ library โ€บ glob.html
glob โ€” Unix style pathname pattern expansion โ€” Python 3.9.25 documentation
July 8, 2025 - This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release. ... The glob module finds all the pathnames matching a specified pattern according to the rules used by the Unix shell, although results ...
๐ŸŒ
Board Infinity
boardinfinity.com โ€บ blog โ€บ glob-in-python-2
Glob() in Python | Board Infinity
July 11, 2023 - The term โ€œglobโ€ refers to methods for matching files that include specific patterns in line with UNIX shell-related expansion rules. In Python, the glob module is used similarly to find, locate, and search for all of the files that are present ...
๐ŸŒ
Codecademy
codecademy.com โ€บ docs โ€บ python โ€บ glob module โ€บ .glob()
Python | Glob Module | .glob() | Codecademy
June 25, 2022 - The .glob() method returns a list of possible matches for a pathname string. ... Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
๐ŸŒ
Medium
martinxpn.medium.com โ€บ glob-working-with-files-in-python-64-100-days-of-python-31e0916f046e
Glob โ€” Working with Files in Python (64/100 Days of Python) | by Martin Mirakyan | Medium
April 10, 2023 - Glob is a Python module that provides a convenient way to search for files that match a specified pattern. It allows you to use wildcard characters to match files with similar names or extensions.