Skip to main content

Function: listFilesRecursively()

function listFilesRecursively(
directoryPath: string,
predicate?: (absoluteFilePath: string) => boolean
): readonly string[];

Defined in: _internal/file-system.ts:141

Recursively list files under a directory when it exists.

Parameters​

ParameterType
directoryPathstring
predicate?(absoluteFilePath: string) => boolean

Returns​

readonly string[]