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

Function exists

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

Source from the content-addressed store, hash-verified

104}
105
106async function exists(path: string) {
107 try {
108 await lstat(path)
109 return true
110 } catch {
111 return false
112 }
113}
114
115async function isDirectory(path: string) {
116 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected