MiniAsset\AssetScanner::_generateTree PHP Method

_generateTree() protected method

Discover all the sub directories for a given path.
protected _generateTree ( string $path ) : array
$path string The path to search
return array Array of subdirectories.
    protected function _generateTree($path)
    {
        $paths = glob($path, GLOB_ONLYDIR);
        if (!$paths) {
            $paths = array();
        }
        array_unshift($paths, dirname($path));
        return $paths;
    }