14 lines
403 B
Go
14 lines
403 B
Go
//go:build windows
|
|
|
|
package service
|
|
|
|
import "os"
|
|
|
|
// isExecutable is a no-op on Windows, which has no POSIX executable bit —
|
|
// executability there is determined by file extension/PATHEXT, not mode
|
|
// bits, matching the practical effect of Python's os.access(..., os.X_OK)
|
|
// which is nearly always true for regular files on Windows.
|
|
func isExecutable(info os.FileInfo) bool {
|
|
return !info.IsDir()
|
|
}
|