MCPcopy Create free account
hub / github.com/garrytan/gstack / isExecutable

Function isExecutable

make-pdf/src/browseClient.ts:159–166  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

157}
158
159function isExecutable(p: string): boolean {
160 try {
161 fs.accessSync(p, fs.constants.X_OK);
162 return true;
163 } catch {
164 return false;
165 }
166}
167
168/**
169 * Run a browse command. Returns stdout on success.

Callers 1

findExecutableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected