@eagleoutice/flowr - v2.13.2
    Preparing search index...

    Function getAllFiles

    • Retrieves all files in the given directory recursively

      Parameters

      • dir: string

        Directory path to start the search from

      • suffix: RegExp = ...

        Suffix of the files to be retrieved

      • throwOnError: boolean = false

        If true, a directory that cannot be read aborts the traversal; otherwise it is logged and skipped (the default) Based on https://stackoverflow.com/a/45130990

      Returns AsyncGenerator<string>

      getAllFilesSync for a synchronous version.