func isCompiled()

in openwhisk/compiler.go [29:44]


func isCompiled(file string) bool {
	Debug("IsCompiled? %s", file)
	_, err := os.Stat(file)
	if err != nil {
		return false
	}

	buf, err := ioutil.ReadFile(file)
	if err != nil {
		Debug(err.Error())
		return false
	}

	// check if it is an executable
	return IsExecutable(buf, runtime.GOOS)
}