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

Method _stat

Lib/pathlib/_os.py:497–503  ·  view source on GitHub ↗
(self, *, follow_symlinks=True, ignore_errors=False)

Source from the content-addressed store, hash-verified

495 self._entry = entry
496
497 def _stat(self, *, follow_symlinks=True, ignore_errors=False):
498 try:
499 return self._entry.stat(follow_symlinks=follow_symlinks)
500 except OSError:
501 if not ignore_errors:
502 raise
503 return None
504
505 def exists(self, *, follow_symlinks=True):
506 """Whether this path exists."""

Callers 5

existsMethod · 0.95
existsMethod · 0.45
is_dirMethod · 0.45
is_fileMethod · 0.45
is_symlinkMethod · 0.45

Calls 1

statMethod · 0.45

Tested by

no test coverage detected