isBinaryFile returns true if the path is the path of the binary file in application bundle. Example: fs-0.0.1.kite/bin/fs
(path string)
| 279 | // isBinaryFile returns true if the path is the path of the binary file |
| 280 | // in application bundle. Example: fs-0.0.1.kite/bin/fs |
| 281 | func isBinaryFile(path string) bool { |
| 282 | parts := strings.Split(path, string(os.PathSeparator)) |
| 283 | if len(parts) != 3 { |
| 284 | return false |
| 285 | } |
| 286 | if parts[1] != "bin" { |
| 287 | return false |
| 288 | } |
| 289 | return true |
| 290 | } |