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

Function exists

kitectl/command/uninstall.go:92–101  ·  view source on GitHub ↗

exists returns whether the given file or directory exists or not.

(path string)

Source from the content-addressed store, hash-verified

90
91// exists returns whether the given file or directory exists or not.
92func exists(path string) (bool, error) {
93 _, err := os.Stat(path)
94 if err == nil {
95 return true, nil
96 }
97 if os.IsNotExist(err) {
98 return false, nil
99 }
100 return false, err
101}

Callers 1

isInstalledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected