MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / find_codeymd

Function find_codeymd

core/codeymd.py:8–14  ·  view source on GitHub ↗
(start: str = None)

Source from the content-addressed store, hash-verified

6_codeymd_cache: dict = {} # tracks which paths we've already logged
7
8def find_codeymd(start: str = None) -> Path | None:
9 start = Path(start or os.getcwd())
10 for directory in [start] + list(start.parents)[:2]:
11 candidate = directory / CODEYMD_FILENAME
12 if candidate.exists():
13 return candidate
14 return None
15
16def read_codeymd(start: str = None) -> str:
17 path = find_codeymd(start)

Callers 6

run_initFunction · 0.90
handle_commandFunction · 0.90
replFunction · 0.90
__init__Method · 0.90
_sync_to_codeymdMethod · 0.90
read_codeymdFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected