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

Function systemPathReaddir

libs/platform/src/system-paths.ts:578–583  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

576 * IMPORTANT: This bypasses ALLOWED_ROOT_DIRECTORY restrictions.
577 */
578export async function systemPathReaddir(dirPath: string): Promise<string[]> {
579 if (!isAllowedSystemPath(dirPath)) {
580 throw new Error(`[SystemPaths] Access denied: ${dirPath} is not an allowed system path`);
581 }
582 return fs.readdir(dirPath);
583}
584
585/**
586 * Read directory contents from an allowed system path (synchronous)

Callers 1

getClaudeAuthIndicatorsFunction · 0.85

Calls 2

isAllowedSystemPathFunction · 0.85
readdirMethod · 0.80

Tested by

no test coverage detected