MCPcopy Create free account
hub / github.com/electric-sql/electric / isExecutable

Function isExecutable

packages/agents-desktop/src/cli/controller.ts:182–194  ·  view source on GitHub ↗
(candidate: string)

Source from the content-addressed store, hash-verified

180}
181
182async function isExecutable(candidate: string): Promise<boolean> {
183 try {
184 await access(
185 candidate,
186 process.platform === `win32`
187 ? fsConstants.F_OK
188 : fsConstants.F_OK | fsConstants.X_OK
189 )
190 return true
191 } catch {
192 return false
193 }
194}
195
196async function readManagedShim(
197 candidate: string

Callers 1

findCommandsOnPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected