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

Function _rlistdir

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

Source from the content-addressed store, hash-verified

201
202# Recursively yields relative pathnames inside a literal directory.
203def _rlistdir(dirname, dir_fd, dironly, include_hidden=False):
204 names = _listdir(dirname, dir_fd, dironly)
205 for x in names:
206 if include_hidden or not _ishidden(x):
207 yield x
208 path = _join(dirname, x) if dirname else x
209 for y in _rlistdir(path, dir_fd, dironly,
210 include_hidden=include_hidden):
211 yield _join(x, y)
212
213
214def _lexists(pathname, dir_fd):

Callers 1

_glob2Function · 0.85

Calls 3

_listdirFunction · 0.85
_ishiddenFunction · 0.85
_joinFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…