Modules
GetFilesInDirectory
Server

Server

lib.getFilesInDirectory

Gets a list of all files in a specified resource directory, along with the file count

lib.getFilesInDirectory(path, pattern)
  • path: string
    • The relative or absolute path to the directory where files should be listed.
  • pattern: string
    • Pattern to check for when searching for files.

Returns:

  • files: string[]
  • fileCount: number