MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Exist

Function Exist

utils/path.go:70–73  ·  view source on GitHub ↗

Exist return if file or path is exist.

(path string)

Source from the content-addressed store, hash-verified

68
69// Exist return if file or path is exist.
70func Exist(path string) bool {
71 _, err := os.Stat(path)
72 return err == nil || os.IsExist(err)
73}

Callers 3

TestDefaultInitFunction · 0.92
TestOpenFunction · 0.92
TestExistFunction · 0.85

Calls 1

StatMethod · 0.80

Tested by 3

TestDefaultInitFunction · 0.74
TestOpenFunction · 0.74
TestExistFunction · 0.68