MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _read_file

Method _read_file

src/utils/file_state_cache.py:82–87  ·  view source on GitHub ↗
(self, abs_path: str)

Source from the content-addressed store, hash-verified

80 return abs_path in self._cache
81
82 async def _read_file(self, abs_path: str) -> str | None:
83 try:
84 loop = asyncio.get_event_loop()
85 return await loop.run_in_executor(None, self._sync_read, abs_path)
86 except (OSError, IOError):
87 return None
88
89 @staticmethod
90 def _sync_read(path: str) -> str:

Callers 1

getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected