CacheDir returns CAM's cache directory. Honors CAM_CACHE_DIR when set.
()
| 64 | |
| 65 | // CacheDir returns CAM's cache directory. Honors CAM_CACHE_DIR when set. |
| 66 | func 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. |