MCPcopy Index your code
hub / github.com/cli/safeexec / chkStat

Function chkStat

lookpath_windows.go:41–50  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

39)
40
41func chkStat(file string) error {
42 d, err := os.Stat(file)
43 if err != nil {
44 return err
45 }
46 if d.IsDir() {
47 return os.ErrPermission
48 }
49 return nil
50}
51
52func hasExt(file string) bool {
53 i := strings.LastIndex(file, ".")

Callers 1

findExecutableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…