MCPcopy
hub / github.com/MinishLab/semble / _linux_cache_dir

Function _linux_cache_dir

src/semble/cache.py:47–51  ·  view source on GitHub ↗

Get the default Linux cache dir.

(name: str)

Source from the content-addressed store, hash-verified

45
46
47def _linux_cache_dir(name: str) -> Path:
48 """Get the default Linux cache dir."""
49 env_base = os.getenv("XDG_CACHE_HOME")
50 base = Path(env_base) if env_base else Path.home() / ".cache"
51 return base / name
52
53
54def _get_valid_user_cache_dir() -> Path | None:

Callers 2

resolve_cache_folderFunction · 0.85

Calls

no outgoing calls

Tested by 1