isExecutable reports whether the entry is a regular file with an executable bit set.
()
| 51 | |
| 52 | // isExecutable reports whether the entry is a regular file with an executable bit set. |
| 53 | func (e dirEntry) isExecutable() bool { |
| 54 | return e.Type == "file" && e.Mode&0o111 != 0 |
| 55 | } |
| 56 | |
| 57 | // modeOctal renders the git mode as a six-digit octal string (e.g. 100644). |
| 58 | func (e dirEntry) modeOctal() string { |
no outgoing calls