• Get all the files in all the subdirectories of a directory.

    Parameters

    • directory: string

      The directory to get the files from.

    • fileExtension: string

      The extension to search for.

    • createDirIfNotFound: boolean = false

      Whether or not the parent directory should be created if it doesn't exist.

    Returns string[]

    The files in the directory.