MCPcopy Create free account
hub / github.com/callstack/agent-device / pathExists

Function pathExists

src/platforms/android/sdk.ts:32–39  ·  view source on GitHub ↗
(candidate: string)

Source from the content-addressed store, hash-verified

30}
31
32async function pathExists(candidate: string): Promise<boolean> {
33 try {
34 await fs.access(candidate, fs.constants.X_OK);
35 return true;
36 } catch {
37 return false;
38 }
39}
40
41export async function ensureAndroidSdkPathConfigured(
42 env: NodeJS.ProcessEnv = process.env,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…