MCPcopy
hub / github.com/etcd-io/etcd / existFileOrDir

Function existFileOrDir

tools/etcd-dump-db/utils.go:22–25  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

20)
21
22func existFileOrDir(name string) bool {
23 _, err := os.Stat(name)
24 return err == nil
25}
26
27func unsafeAdd(base unsafe.Pointer, offset uintptr) unsafe.Pointer {
28 return unsafe.Pointer(uintptr(base) + offset)

Callers 4

listBucketCommandFuncFunction · 0.85
iterateBucketCommandFuncFunction · 0.85
scanKeysCommandFuncFunction · 0.85
getHashCommandFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…