Function readAllDirContents

  • Read all contents within a directory and store them in an object. Optionally recursive.

    Parameters

    • dir: string
    • __namedParameters: { excludeList?: readonly (string | RegExp)[]; recursive?: boolean }

    Returns Promise<DirContents>