MCPcopy
hub / github.com/openakita/openakita / exists

Method exists

src/openakita/tools/file.py:577–580  ·  view source on GitHub ↗

检查路径是否存在

(self, path: str)

Source from the content-addressed store, hash-verified

575 return False
576
577 async def exists(self, path: str) -> bool:
578 """检查路径是否存在"""
579 file_path = self._resolve_path(path)
580 return file_path.exists()
581
582 async def is_file(self, path: str) -> bool:
583 """检查是否是文件"""

Callers 15

test_fileFunction · 0.95
recover_sessionsFunction · 0.45
rebuildSceneMethod · 0.45
renderTilemapMethod · 0.45
shutdownMethod · 0.45
ensureTextureMethod · 0.45
updateConfigMethod · 0.45
mcp_builtin_pathMethod · 0.45
_create_settings_safeFunction · 0.45
_read_jsonl_tailFunction · 0.45
_resolve_version_infoFunction · 0.45
_with_seed_if_availableFunction · 0.45

Calls 1

_resolve_pathMethod · 0.95