match.
.. audit-event:: glob.glob pathname,recursive glob.glob
+ .. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.glob
.. note::
Using the "``**``" pattern in large directory trees may consume
without actually storing them all simultaneously.
.. audit-event:: glob.glob pathname,recursive glob.iglob
+ .. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
+
+ .. versionchanged:: 3.5
+ Support for recursive globs using "``**``".
+
+ .. versionchanged:: 3.10
+ Added the *root_dir* and *dir_fd* parameters.
.. function:: escape(pathname)
Module :mod:`fnmatch`
Shell-style filename (not path) expansion
-
zero or more directories and subdirectories.
"""
sys.audit("glob.glob", pathname, recursive)
+ sys.audit("glob.glob/2", pathname, recursive, root_dir, dir_fd)
if root_dir is not None:
root_dir = os.fspath(root_dir)
else: