MCPcopy Create free account
hub / github.com/github/gh-aw / GetCacheDir

Method GetCacheDir

pkg/parser/import_cache.go:142–144  ·  view source on GitHub ↗

GetCacheDir returns the base cache directory path

()

Source from the content-addressed store, hash-verified

140
141// GetCacheDir returns the base cache directory path
142func (c *ImportCache) GetCacheDir() string {
143 return filepath.Join(c.baseDir, ImportCacheDir)
144}
145
146// ensureGitAttributes creates the .gitattributes file in the cache directory if it doesn't exist
147func (c *ImportCache) ensureGitAttributes() error {

Callers 2

ensureGitAttributesMethod · 0.95
TestImportCacheDirectoryFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestImportCacheDirectoryFunction · 0.76