Function readDirFilesByExtension

  • Reads all files within a single directory and filters them by the given extension or extensions.

    Parameters

    • __namedParameters: {
          dirPath: string;
      } & RequireExactlyOne<{
          extension: string;
          extensions: readonly string[];
      }>

    Returns Promise<string[]>

    That filtered list of paths.