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

    Function getAllFilesSync

    • Retrieves all files in the given directory recursively (synchronously)

      Parameters

      • dir: string

        Directory path to start the search from

      • suffix: RegExp = ...

        Suffix of the files to be retrieved, tested against the file name

      • ignoreDirs: RegExp | undefined = undefined

        Directories to skip, tested against the posix path relative to dir (e.g. packrat/lib), so a pattern can address nested directories

      • relativeTo: string = dir

        The path to which the returned paths are relative (used for ignoreDirs), defaults to dir

      • throwOnError: boolean = false

        If true, a directory that cannot be read aborts the traversal; otherwise it is logged and skipped (the default)

      Returns Generator<string>

      getAllFiles - for an asynchronous version.