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

Function _glob2

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

Source from the content-addressed store, hash-verified

147# directory.
148
149def _glob2(dirname, pattern, dir_fd, dironly, include_hidden=False):
150 assert _isrecursive(pattern)
151 if not dirname or _isdir(dirname, dir_fd):
152 yield pattern[:0]
153 yield from _rlistdir(dirname, dir_fd, dironly,
154 include_hidden=include_hidden)
155
156# If dironly is false, yields all file names inside a directory.
157# 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