MCPcopy
hub / github.com/safishamsi/graphify / cache_dir

Function cache_dir

graphify/cache.py:14–18  ·  view source on GitHub ↗

Returns graphify-out/cache/ - creates it if needed.

(root: Path = Path("."))

Source from the content-addressed store, hash-verified

12
13
14def cache_dir(root: Path = Path(".")) -> Path:
15 """Returns graphify-out/cache/ - creates it if needed."""
16 d = Path(root) / "graphify-out" / "cache"
17 d.mkdir(parents=True, exist_ok=True)
18 return d
19
20
21def load_cached(path: Path, root: Path = Path(".")) -> dict | None:

Callers 4

load_cachedFunction · 0.85
save_cachedFunction · 0.85
cached_filesFunction · 0.85
clear_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected