MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / CacheDir

Function CacheDir

internal/pathutil/pathutil.go:66–71  ·  view source on GitHub ↗

CacheDir returns CAM's cache directory. Honors CAM_CACHE_DIR when set.

()

Source from the content-addressed store, hash-verified

64
65// CacheDir returns CAM's cache directory. Honors CAM_CACHE_DIR when set.
66func CacheDir() string {
67 if dir := os.Getenv("CAM_CACHE_DIR"); dir != "" {
68 return dir
69 }
70 return filepath.Join(Home(), ".cache", "code-agent-manager")
71}
72
73// Exists reports whether the file at path exists (and is reachable via Stat).
74// Symlink targets are followed; broken symlinks return false.

Callers 7

newDetectionCacheFunction · 0.92
ResolveModelsFunction · 0.92
RunMethod · 0.92
RefreshAllMethod · 0.92
fetchResourceManifestMethod · 0.92
ResolveModelsMethod · 0.92

Calls 1

HomeFunction · 0.85

Tested by 1