MCPcopy Index your code
hub / github.com/RustPython/RustPython / exists

Method exists

Lib/pathlib/_os.py:455–460  ·  view source on GitHub ↗

Whether this path exists.

(self, *, follow_symlinks=True)

Source from the content-addressed store, hash-verified

453 __slots__ = ()
454
455 def exists(self, *, follow_symlinks=True):
456 """Whether this path exists."""
457 st = self._stat(follow_symlinks=follow_symlinks, ignore_errors=True)
458 if st is None:
459 return False
460 return True
461
462 def is_dir(self, *, follow_symlinks=True):
463 """Whether this path is a directory."""

Callers

nothing calls this directly

Calls 1

_statMethod · 0.45

Tested by

no test coverage detected