MCPcopy Index your code
hub / github.com/callstack/agent-device / isExecutablePath

Function isExecutablePath

src/utils/exec.ts:676–684  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

674}
675
676export async function isExecutablePath(filePath: string): Promise<boolean> {
677 try {
678 if (!(await isFilePath(filePath))) return false;
679 await access(filePath, process.platform === 'win32' ? constants.F_OK : constants.X_OK);
680 return true;
681 } catch {
682 return false;
683 }
684}
685
686async function isFilePath(filePath: string): Promise<boolean> {
687 try {

Callers 3

resolveAaptPathFunction · 0.90
whichCmdFunction · 0.85

Calls 1

isFilePathFunction · 0.85

Tested by

no test coverage detected