Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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.
70
func
Exist(path string) bool {
71
_, err := os.Stat(path)
72
return
err == nil || os.IsExist(err)
73
}
Callers
3
TestDefaultInit
Function · 0.92
TestOpen
Function · 0.92
TestExist
Function · 0.85
Calls
1
Stat
Method · 0.80
Tested by
3
TestDefaultInit
Function · 0.74
TestOpen
Function · 0.74
TestExist
Function · 0.68