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

Function _glob0

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

Source from the content-addressed store, hash-verified

109 return fnmatch.filter(names, pattern)
110
111def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False):
112 if basename:
113 if _lexists(_join(dirname, basename), dir_fd):
114 return [basename]
115 else:
116 # `os.path.split()` returns an empty basename for paths ending with a
117 # directory separator. 'q*x/' should match only directories.
118 if _isdir(dirname, dir_fd):
119 return [basename]
120 return []
121
122# Following functions are not public but can be used by third-party code.
123

Callers 1

glob0Function · 0.85

Calls 3

_lexistsFunction · 0.85
_isdirFunction · 0.85
_joinFunction · 0.70

Tested by

no test coverage detected