goadb/access_win.go
Mandar Limaye daaa0fa467 Add conditional build files for unix.Access.
This will allow library to be built on windows.
2016-08-09 12:07:21 -05:00

16 lines
193 B
Go

// +build windows
package adb
import (
"errors"
"strings"
)
func access(path string) error {
if strings.Contains(path, ".exe") {
return nil
}
return errors.New("not an executable")
}