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

Function _glob1

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

Source from the content-addressed store, hash-verified

103# takes a literal basename (so it only has to check for its existence).
104
105def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False):
106 names = _listdir(dirname, dir_fd, dironly)
107 if include_hidden or not _ishidden(pattern):
108 names = (x for x in names if include_hidden or not _ishidden(x))
109 return fnmatch.filter(names, pattern)
110
111def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False):
112 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