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

Method is_file

marimo/_utils/async_path.py:58–60  ·  view source on GitHub ↗

Return True if the path is a regular file.

(self)

Source from the content-addressed store, hash-verified

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."""
60 return await asyncio.to_thread(self._path.is_file)
61
62 async def is_dir(self) -> bool:
63 """Return True if the path is a directory."""

Callers 15

test_is_file_trueMethod · 0.95
test_is_file_falseMethod · 0.95
_default_image_existsFunction · 0.80
get_filesFunction · 0.80
async_get_filesFunction · 0.80
isfileFunction · 0.80
get_user_config_pathFunction · 0.80
get_configMethod · 0.80
newFunction · 0.80
runFunction · 0.80
is_file_pathFunction · 0.80
handleMethod · 0.80

Calls

no outgoing calls