MCPcopy Index your code
hub / github.com/koding/kite / isBinaryFile

Function isBinaryFile

kitectl/command/install.go:281–290  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
281func 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}

Callers 1

extractTarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected