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

Method exists

Lib/pathlib/_os.py:505–509  ·  view source on GitHub ↗

Whether this path exists.

(self, *, follow_symlinks=True)

Source from the content-addressed store, hash-verified

503 return None
504
505 def exists(self, *, follow_symlinks=True):
506 """Whether this path exists."""
507 if not follow_symlinks:
508 return True
509 return self._stat(ignore_errors=True) is not None
510
511 def is_dir(self, *, follow_symlinks=True):
512 """Whether this path is a directory."""

Callers 1

existsMethod · 0.45

Calls 1

_statMethod · 0.95

Tested by

no test coverage detected