MCPcopy Index your code
hub / github.com/python/cpython / _glob2

Function _glob2

Lib/glob.py:155–160  ·  view source on GitHub ↗
(dirname, pattern, dir_fd, dironly, include_hidden=False)

Source from the content-addressed store, hash-verified

153# directory.
154
155def _glob2(dirname, pattern, dir_fd, dironly, include_hidden=False):
156 assert _isrecursive(pattern)
157 if not dirname or _isdir(dirname, dir_fd):
158 yield pattern[:0]
159 yield from _rlistdir(dirname, dir_fd, dironly,
160 include_hidden=include_hidden)
161
162# If dironly is false, yields all file names inside a directory.
163# If dironly is true, yields only directory names.

Callers 1

_iglobFunction · 0.85

Calls 3

_isrecursiveFunction · 0.85
_isdirFunction · 0.85
_rlistdirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…