MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _rlistdir

Function _rlistdir

tools/python-3.11.9-amd64/Lib/glob.py:181–189  ·  view source on GitHub ↗
(dirname, dir_fd, dironly, include_hidden=False)

Source from the content-addressed store, hash-verified

179
180# Recursively yields relative pathnames inside a literal directory.
181def _rlistdir(dirname, dir_fd, dironly, include_hidden=False):
182 names = _listdir(dirname, dir_fd, dironly)
183 for x in names:
184 if include_hidden or not _ishidden(x):
185 yield x
186 path = _join(dirname, x) if dirname else x
187 for y in _rlistdir(path, dir_fd, dironly,
188 include_hidden=include_hidden):
189 yield _join(x, y)
190
191
192def _lexists(pathname, dir_fd):

Callers 1

_glob2Function · 0.70

Calls 3

_listdirFunction · 0.85
_ishiddenFunction · 0.85
_joinFunction · 0.70

Tested by

no test coverage detected