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

Function _glob1

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

Source from the content-addressed store, hash-verified

112# takes a literal basename (so it only has to check for its existence).
113
114def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False):
115 names = _listdir(dirname, dir_fd, dironly)
116 if not (include_hidden or _ishidden(pattern)):
117 names = (x for x in names if not _ishidden(x))
118 return fnmatch.filter(names, pattern)
119
120def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False):
121 if basename:

Callers 2

_iglobFunction · 0.85
glob1Function · 0.85

Calls 3

_listdirFunction · 0.85
_ishiddenFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected