elvish/pkg/fsutil/search_unix.go
Qi Xiao 0adf0ec147 Use the unix build tag.
The unix build tag is supported by Go 1.19.
2023-03-03 00:01:26 +00:00

10 lines
139 B
Go

//go:build unix
package fsutil
import "os"
func isExecutable(stat os.FileInfo) bool {
return !stat.IsDir() && stat.Mode()&0o111 != 0
}