Brimbox Logo Brimbox Version 2.3.4 Released

get_directory_tree>>

Recursive method to parse a directory returning paths and files.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function get_directory_tree($directory)

Usage:

$full_path_array = $main->get_directory_tree($directory);

Returns: array of files and their directory paths from a root directory.

Note: method calls method array_flatten.

Parameter: $directory (string, valid directory)
Directory to parse, usually a relative path.

Updated: 2016-06-16