MCPcopy
hub / github.com/cool-RR/PySnooper / exists

Method exists

tests/mini_toolbox/pathlib.py:1547–1557  ·  view source on GitHub ↗

Whether this path exists.

(self)

Source from the content-addressed store, hash-verified

1545 # Convenience functions for querying the stat results
1546
1547 def exists(self):
1548 """
1549 Whether this path exists.
1550 """
1551 try:
1552 self.stat()
1553 except OSError as e:
1554 if e.errno not in (ENOENT, ENOTDIR):
1555 raise
1556 return False
1557 return True
1558
1559 def is_dir(self):
1560 """

Callers

nothing calls this directly

Calls 1

statMethod · 0.95

Tested by

no test coverage detected