Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
114
func
isDir(d string) bool {
115
fi, err := os.Stat(d)
116
if
err != nil {
117
return
false
118
}
119
return
fi.IsDir()
120
}
121
122
func
randomStr(n int) string {
123
rand.Seed(time.Now().UnixNano())
Callers
1
main
Function · 0.85
Calls
1
Stat
Method · 0.65
Tested by
no test coverage detected