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

Function fileExists

pkg/system/kernel_linux.go:115–122  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

113}
114
115func fileExists(filePath string) bool {
116 fileInfo, err := os.Stat(filePath)
117 if err == nil && (fileInfo.Mode().IsRegular()) {
118 return true
119 }
120
121 return false
122}
123
124func readKernelFeatures(filename string) (map[string]string, error) {
125 freader, err := os.Open(filename)

Callers 2

findKernelConfigsFunction · 0.85

Calls 1

ModeMethod · 0.80

Tested by

no test coverage detected