github.com/banmanh482/nomad@v0.11.8/helper/pluginutils/loader/filter_unix.go (about) 1 // +build !windows 2 3 package loader 4 5 import "os" 6 7 // executable Checks to see if the file is executable by anyone. 8 func executable(path string, f os.FileInfo) bool { 9 return f.Mode().Perm()&0111 != 0 10 }