Method: dir::read

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

It skips unwanted invisible stuff.

Info

Syntax

dir::read($dir)

Parameters

Return (mixed)

An array of filenames or false

Example


$files = dir::read('mydirectory');
// returns array('file-1.txt', 'file-2.txt', 'file-3.txt', etc...);