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

Function _lexists

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

Source from the content-addressed store, hash-verified

212
213
214def _lexists(pathname, dir_fd):
215 # Same as os.path.lexists(), but with dir_fd
216 if dir_fd is None:
217 return os.path.lexists(pathname)
218 try:
219 os.lstat(pathname, dir_fd=dir_fd)
220 except (OSError, ValueError):
221 return False
222 else:
223 return True
224
225def _isdir(pathname, dir_fd):
226 # Same as os.path.isdir(), but with dir_fd

Callers 2

_iglobFunction · 0.85
_glob0Function · 0.85

Calls 2

lstatMethod · 0.80
lexistsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…