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

Function _lexists

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

Source from the content-addressed store, hash-verified

190
191
192def _lexists(pathname, dir_fd):
193 # Same as os.path.lexists(), but with dir_fd
194 if dir_fd is None:
195 return os.path.lexists(pathname)
196 try:
197 os.lstat(pathname, dir_fd=dir_fd)
198 except (OSError, ValueError):
199 return False
200 else:
201 return True
202
203def _isdir(pathname, dir_fd):
204 # Same as os.path.isdir(), but with dir_fd

Callers 2

_iglobFunction · 0.85
_glob0Function · 0.85

Calls 1

lstatMethod · 0.80

Tested by

no test coverage detected