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

Function systemPathExists

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

Source from the content-addressed store, hash-verified

486 * Only use for checking system tool installation paths.
487 */
488export function systemPathExists(filePath: string): boolean {
489 if (!isAllowedSystemPath(filePath)) {
490 throw new Error(`[SystemPaths] Access denied: ${filePath} is not an allowed system path`);
491 }
492 return fsSync.existsSync(filePath);
493}
494
495/**
496 * Check if a file is accessible at a system path (async)

Callers 6

detectShellMethod · 0.90
isWSLMethod · 0.90
findShellCommandMethod · 0.90
startServerFunction · 0.90

Calls 1

isAllowedSystemPathFunction · 0.85

Tested by

no test coverage detected