MCPcopy Create free account
hub / github.com/MG-RAST/Shock / isDir

Function isDir

shock-client/util.go:114–120  ·  view source on GitHub ↗
(d string)

Source from the content-addressed store, hash-verified

112}
113
114func isDir(d string) bool {
115 fi, err := os.Stat(d)
116 if err != nil {
117 return false
118 }
119 return fi.IsDir()
120}
121
122func randomStr(n int) string {
123 rand.Seed(time.Now().UnixNano())

Callers 1

mainFunction · 0.85

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected