private function globRecursive($pattern)
    {
        $paths = glob($pattern);
        foreach ($paths as $path) {
            if (strpos($path, '.') === false) {
                $paths = array_merge($paths, $this->globRecursive($path . '/*'));
            }
        }
        return $paths;
    }
private function globRecursive($pattern)
    {
        $paths = glob($pattern);
        foreach ($paths as $path) {
            if (strpos($path, '.') === false) {
                $paths = array_merge($paths, $this->globRecursive($path . '/*'));
            }
        }
        return $paths;
    }
private function globRecursive ( $ pattern ) { $ paths = glob ( $ pattern ) ; foreach ( $ paths as $ path ) { if ( strpos ( $ path , '.' ) === false ) { $ paths = array_merge ( $ paths , $ this -> globRecursive ( $ path . '/*' ) ) ; } } return $ paths ; }
watch out can be slow!
4.75s for 20k paths
@param  string $pattern '/*'
@return array          paths
watch out can be slow! 4 . 75s for 20k paths