MCPcopy
hub / github.com/perkeep/perkeep / dirExists

Function dirExists

pkg/client/android/androidx.go:69–72  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

67var onAndroidCache bool
68
69func dirExists(f string) bool {
70 fi, err := os.Stat(f)
71 return err == nil && fi.IsDir()
72}
73
74func initOnAndroid() {
75 // Good enough heuristic. Suggestions welcome.

Callers 1

initOnAndroidFunction · 0.85

Calls 2

StatMethod · 0.65
IsDirMethod · 0.65

Tested by

no test coverage detected