src/AssetScanner.php
protected function _generateTree($path)
    {
        $paths = glob($path, GLOB_ONLYDIR);
        if (!$paths) {
            $paths = array();
        }
        array_unshift($paths, dirname($path));
        return $paths;
    }
protected function _generateTree($path)
    {
        $paths = glob($path, GLOB_ONLYDIR);
        if (!$paths) {
            $paths = array();
        }
        array_unshift($paths, dirname($path));
        return $paths;
    }
protected function _generateTree ( $ path ) { $ paths = glob ( $ path , GLOB_ONLYDIR ) ; if ( ! $ paths ) { $ paths = array ( ) ; } array_unshift ( $ paths , dirname ( $ path ) ) ; return $ paths ; }
Discover all the sub directories for a given path.

@param string $path The path to search
@return array Array of subdirectories.
Discover all the sub directories for a given path .