This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Creates a tree-structured array of directories and files from a given root folder. | |
* | |
* Gleaned from: http://stackoverflow.com/questions/952263/deep-recursive-array-of-directory-structure-in-php | |
* | |
* @param string $dir | |
* @param string $regex | |
* @param boolean $ignoreEmpty Do not add empty directories to the tree | |
* @return array |