dir::read

Reads all files from a directory and returns them as an array.

dir::read($dir, $ignore = array())

Parameters

$dir (string)
The path of directory
$ignore (array)
Optional array with filenames, which should be ignored

Return values

mixed
An array of filenames or false