MCPcopy
hub / github.com/ray-project/ray / fixed_isdir

Function fixed_isdir

python/setup.py:467–474  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

465 orig_isdir = os.path.isdir
466
467 def fixed_isdir(path):
468 while os.path.islink(path):
469 try:
470 link = os.readlink(path)
471 except OSError:
472 break
473 path = os.path.abspath(os.path.join(os.path.dirname(path), link))
474 return orig_isdir(path)
475
476 os.path.isdir = fixed_isdir
477

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…