glob — Unix style pathname pattern expansion — Python 3.16.0a0 documentation

docs.python.org

Tin mới

tempfile — Generate temporary files and directories

fnmatch — Unix filename pattern matching

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

File and Directory Access

pathlib.Path.glob()

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. This is done by using the os

os.path.expanduser()

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. This is done by using the os

paths relative to directory descriptors

If root_dir is not None, it should be a path-like object specifying the root directory for searching. It has the same effect on glob() as changing the current directory before calling it. If pathname is relative, the res