MCPcopy Index your code
hub / github.com/anomalyco/opencode / isDirectory

Function isDirectory

nix/scripts/canonicalize-node-modules.ts:9–16  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

7}
8
9async function isDirectory(path: string) {
10 try {
11 const info = await lstat(path)
12 return info.isDirectory()
13 } catch {
14 return false
15 }
16}
17
18const isValidSemver = (v: string) => Bun.semver.satisfies(v, "x.x.x")
19

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected