MCPcopy Index your code
hub / github.com/RustPython/RustPython / _rlistdir

Function _rlistdir

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

Source from the content-addressed store, hash-verified

195
196# Recursively yields relative pathnames inside a literal directory.
197def _rlistdir(dirname, dir_fd, dironly, include_hidden=False):
198 names = _listdir(dirname, dir_fd, dironly)
199 for x in names:
200 if include_hidden or not _ishidden(x):
201 yield x
202 path = _join(dirname, x) if dirname else x
203 for y in _rlistdir(path, dir_fd, dironly,
204 include_hidden=include_hidden):
205 yield _join(x, y)
206
207
208def _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