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

Function isEnoent

packages/opencode/src/util/filesystem.ts:57–59  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

55}
56
57function isEnoent(e: unknown): e is { code: "ENOENT" } {
58 return typeof e === "object" && e !== null && "code" in e && (e as { code: string }).code === "ENOENT"
59}
60
61export async function write(p: string, content: string | Buffer | Uint8Array, mode?: number): Promise<void> {
62 try {

Callers 3

statAsyncFunction · 0.85
writeFunction · 0.85
resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected