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

Function _isdir

Lib/glob.py:225–234  ·  view source on GitHub ↗
(pathname, dir_fd)

Source from the content-addressed store, hash-verified

223 return True
224
225def _isdir(pathname, dir_fd):
226 # Same as os.path.isdir(), but with dir_fd
227 if dir_fd is None:
228 return os.path.isdir(pathname)
229 try:
230 st = os.stat(pathname, dir_fd=dir_fd)
231 except (OSError, ValueError):
232 return False
233 else:
234 return stat.S_ISDIR(st.st_mode)
235
236def _join(dirname, basename):
237 # 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…