MCPcopy
hub / github.com/marimo-team/marimo / exists

Method exists

marimo/_utils/async_path.py:54–56  ·  view source on GitHub ↗

Return True if the path exists.

(self)

Source from the content-addressed store, hash-verified

52 # Async filesystem operations
53
54 async def exists(self) -> bool:
55 """Return True if the path exists."""
56 return await asyncio.to_thread(self._path.exists)
57
58 async def is_file(self) -> bool:
59 """Return True if the path is a regular file."""

Callers 15

indexFunction · 0.95
test_exists_trueMethod · 0.95
test_exists_falseMethod · 0.95
test_unlinkMethod · 0.95
get_changed_filesFunction · 0.45
get_test_baseFunction · 0.45
find_test_filesFunction · 0.45
_has_cgroup_cpu_limitFunction · 0.45
get_cgroup_mem_statsFunction · 0.45
get_cgroup_cpu_percentFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_exists_trueMethod · 0.76
test_exists_falseMethod · 0.76
test_unlinkMethod · 0.76
test_make_log_directoryFunction · 0.36
_venv_canary_pathFunction · 0.36
_assert_venv_not_wipedFunction · 0.36
test_get_putMethod · 0.36
test_initMethod · 0.36
test_watchdog_file_movedFunction · 0.36
test_renameFunction · 0.36