MCPcopy
hub / github.com/AutoMaker-Org/automaker / systemPathAccess

Function systemPathAccess

libs/platform/src/system-paths.ts:500–510  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

498 * Only use for checking system tool installation paths.
499 */
500export async function systemPathAccess(filePath: string): Promise<boolean> {
501 if (!isAllowedSystemPath(filePath)) {
502 throw new Error(`[SystemPaths] Access denied: ${filePath} is not an allowed system path`);
503 }
504 try {
505 await fs.access(filePath);
506 return true;
507 } catch {
508 return false;
509 }
510}
511
512/**
513 * Check if a file has execute permission (synchronous)

Callers 4

getClaudeStatusFunction · 0.90
getGhStatusFunction · 0.90
findFirstExistingPathFunction · 0.85
getClaudeAuthIndicatorsFunction · 0.85

Calls 1

isAllowedSystemPathFunction · 0.85

Tested by

no test coverage detected