github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/helper/pluginutils/loader/filter_unix.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package loader
     5  
     6  import "os"
     7  
     8  // executable Checks to see if the file is executable by anyone.
     9  func executable(path string, f os.FileInfo) bool {
    10  	return f.Mode().Perm()&0111 != 0
    11  }