Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Functions

Functions

getFilesFromDir

  • getFilesFromDir(dirpath: any, filetype?: any, recursive?: boolean): any[]
  • Get all files from a directory and all its sub-directories.

    Parameters

    • dirpath: any

      Directory path (relative or absolute).

    • Default value filetype: any = null

      Filetype that should be considered.

    • Default value recursive: boolean = false

      Whether to get files from sub-directories.

    Returns any[]

    Array of paths of the found '.' files (sorted).