MCPcopy
hub / github.com/slimtoolkit/slim / findKernelConfigs

Function findKernelConfigs

pkg/system/kernel_linux.go:105–113  ·  view source on GitHub ↗
(locations []string)

Source from the content-addressed store, hash-verified

103var DefaultKernelFeatures, _ = NewKernelFeatures()
104
105func findKernelConfigs(locations []string) string {
106 for _, loc := range locations {
107 if fileExists(loc) {
108 return loc
109 }
110 }
111
112 return ""
113}
114
115func fileExists(filePath string) bool {
116 fileInfo, err := os.Stat(filePath)

Callers 1

Calls 1

fileExistsFunction · 0.85

Tested by

no test coverage detected