MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / FileExists

Function FileExists

base/util_testing.go:718–724  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

716}
717
718func FileExists(filename string) bool {
719 info, err := os.Stat(filename)
720 if err != nil {
721 return false
722 }
723 return !info.IsDir()
724}
725
726func DirExists(filename string) bool {
727 info, err := os.Stat(filename)

Callers 7

deleteTempFileFunction · 0.92
javaScriptFileFunction · 0.92
emptyJavaScriptFileFunction · 0.92
readFromPathFunction · 0.92
mockCertificatesAndKeysFunction · 0.85

Calls

no outgoing calls

Tested by 6

deleteTempFileFunction · 0.74
javaScriptFileFunction · 0.74
emptyJavaScriptFileFunction · 0.74
mockCertificatesAndKeysFunction · 0.68