( directoryPath: string, fileSystemExecutor: FileSystemExecutor, )
| 223 | } |
| 224 | |
| 225 | async 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 | |
| 237 | async function collectSwiftFiles( |
| 238 | directoryPath: string, |
no test coverage detected