MCPcopy Create free account
hub / github.com/anomalyco/opencode / isDirectory

Function isDirectory

nix/scripts/normalize-bun-binaries.ts:115–122  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

113}
114
115async function isDirectory(path: string) {
116 try {
117 const info = await lstat(path)
118 return info.isDirectory()
119 } catch {
120 return false
121 }
122}
123
124function normalizeBinName(name: string) {
125 const slash = name.lastIndexOf("/")

Callers 1

collectPackagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected