Lines Matching refs:glob
1 :mod:`glob` --- Unix style pathname pattern expansion
4 .. module:: glob
7 **Source code:** :source:`Lib/glob.py`
14 single: * (asterisk); in glob-style wildcards
15 single: ? (question mark); in glob-style wildcards
16 single: [] (square brackets); in glob-style wildcards
17 single: ! (exclamation); in glob-style wildcards
18 single: - (minus); in glob-style wildcards
19 single: . (dot); in glob-style wildcards
21 The :mod:`glob` module finds all the pathnames matching a specified pattern
27 :mod:`glob` treats filenames beginning with a dot (``.``) as special cases.
39 .. function:: glob(pathname, *, root_dir=None, dir_fd=None, recursive=False)
52 :func:`glob` as changing the current directory before calling it. If
60 single: **; in glob-style wildcards
67 .. audit-event:: glob.glob pathname,recursive glob.glob
68 .. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.glob
83 Return an :term:`iterator` which yields the same values as :func:`glob`
86 .. audit-event:: glob.glob pathname,recursive glob.iglob
87 .. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
109 which contains only the file :file:`3.txt`. :func:`glob` will produce
113 >>> import glob
114 >>> glob.glob('./[0-9].*')
116 >>> glob.glob('*.gif')
118 >>> glob.glob('?.gif')
120 >>> glob.glob('**/*.txt', recursive=True)
122 >>> glob.glob('./**/', recursive=True)
129 >>> import glob
130 >>> glob.glob('*.gif')
132 >>> glob.glob('.c*')