require_once 'File/Find.php';
array &File_Find::maptree (string $directory)
array &File_Find::maptree
Map the directory tree given by the directory_path parameter.
string $directory - contains the directory path that you want to map
array - a two element array, the first element containing a list of all the directories, the second element containing a list of all the files.
This function can not be called statically.
Example 30-1. Get the content of a directory
$f = new File_Find(); $file = $f->maptree('/tmp/');