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

Function _isdir

tools/python-3.11.9-amd64/Lib/glob.py:203–212  ·  view source on GitHub ↗
(pathname, dir_fd)

Source from the content-addressed store, hash-verified

201 return True
202
203def _isdir(pathname, dir_fd):
204 # Same as os.path.isdir(), but with dir_fd
205 if dir_fd is None:
206 return os.path.isdir(pathname)
207 try:
208 st = os.stat(pathname, dir_fd=dir_fd)
209 except (OSError, ValueError):
210 return False
211 else:
212 return stat.S_ISDIR(st.st_mode)
213
214def _join(dirname, basename):
215 # It is common if dirname or basename is empty

Callers 3

_iglobFunction · 0.85
_glob0Function · 0.85
_glob2Function · 0.85

Calls 2

isdirMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected