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

Function _ensure_path

marimo/_session/notebook/storage.py:222–226  ·  view source on GitHub ↗

Ensure path is a Path object.

(path: str | Path)

Source from the content-addressed store, hash-verified

220
221
222def _ensure_path(path: str | Path) -> Path:
223 """Ensure path is a Path object."""
224 if not isinstance(path, Path):
225 path = Path(path)
226 return path

Callers 7

readMethod · 0.85
writeMethod · 0.85
existsMethod · 0.85
renameMethod · 0.85
ensure_parent_dirsMethod · 0.85
is_same_pathMethod · 0.85
get_absolute_pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…