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

Function _glob1

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

Source from the content-addressed store, hash-verified

133# takes a literal basename (so it only has to check for its existence).
134
135def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False):
136 names = _listdir(dirname, dir_fd, dironly)
137 if not (include_hidden or _ishidden(pattern)):
138 names = (x for x in names if not _ishidden(x))
139 return fnmatch.filter(names, pattern)
140
141def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False):
142 if basename:

Callers 1

_iglobFunction · 0.85

Calls 3

_listdirFunction · 0.85
_ishiddenFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…