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

Function hasExt

packages/desktop/src/main/apps.ts:52–52  ·  view source on GitHub ↗
(path: string, ext: string)

Source from the content-addressed store, hash-verified

50 .filter((line) => line.length > 0)
51
52 const hasExt = (path: string, ext: string) => extname(path).toLowerCase() === `.${ext}`
53
54 const exe = paths.find((path) => hasExt(path, "exe"))
55 if (exe) return exe

Callers 1

resolveWindowsAppPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected