MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / isExecutableFile

Function isExecutableFile

desktop/runtime-host/client-environment.ts:34–42  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

32}
33
34function isExecutableFile(filePath: string) {
35 try {
36 if (!statSync(filePath).isFile()) return false
37 accessSync(filePath, constants.X_OK)
38 return true
39 } catch {
40 return false
41 }
42}
43
44function runShellNodeProbe(shell: string) {
45 return new Promise<string | null>((resolve) => {

Callers 3

runShellNodeProbeFunction · 0.70
discoverNodeFromShellFunction · 0.70
getNodeExecutableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected