MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / listDirectoryEntries

Function listDirectoryEntries

src/utils/test-preflight.ts:225–235  ·  view source on GitHub ↗
(
  directoryPath: string,
  fileSystemExecutor: FileSystemExecutor,
)

Source from the content-addressed store, hash-verified

223}
224
225async function listDirectoryEntries(
226 directoryPath: string,
227 fileSystemExecutor: FileSystemExecutor,
228): Promise<string[]> {
229 try {
230 const entries = await fileSystemExecutor.readdir(directoryPath);
231 return entries.filter((entry): entry is string => typeof entry === 'string');
232 } catch {
233 return [];
234 }
235}
236
237async function collectSwiftFiles(
238 directoryPath: string,

Callers 1

collectSwiftFilesFunction · 0.85

Calls 1

readdirMethod · 0.80

Tested by

no test coverage detected