MCPcopy Index your code
hub / github.com/crashappsec/github-analyzer / Init

Function Init

pkg/futils/futils.go:16–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14var IssuesDir, StatsDir, MetadataDir, HtmlDir string
15
16func Init() {
17
18 log.Logger.Debugf("Output dir is %s", config.ViperEnv.OutputDir)
19 IssuesDir = filepath.Join(config.ViperEnv.OutputDir, "issues")
20 StatsDir = filepath.Join(config.ViperEnv.OutputDir, "stats")
21 MetadataDir = filepath.Join(config.ViperEnv.OutputDir, "metadata")
22
23 CreateDir(config.ViperEnv.OutputDir)
24 CreateDir(IssuesDir)
25 CreateDir(StatsDir)
26 CreateDir(MetadataDir)
27}
28
29func CreateDir(path string) {
30 if _, err := os.Stat(path); errors.Is(err, os.ErrNotExist) {

Callers 1

runCmdFunction · 0.92

Calls 1

CreateDirFunction · 0.85

Tested by

no test coverage detected