MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / initCache

Function initCache

opensca/sca/cache/cache.go:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17)
18
19func initCache() {
20 excpath, _ := os.Executable()
21 cacheDir = filepath.Join(filepath.Dir(excpath), cacheDir)
22 if err := os.MkdirAll(cacheDir, 0777); err != nil {
23 logs.Error(err)
24 }
25}
26
27func Save(path string, reader io.Reader) bool {
28 os.MkdirAll(filepath.Dir(path), 0777)

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.92

Tested by

no test coverage detected