PathFinder::searchDir PHP Méthode

searchDir() public méthode

Specify type and directory and it will return array of all files of a matching type inside that directory. This will work even if specified directory exists inside multiple locations.
public searchDir ( $type, $directory = '' )
    public function searchDir($type, $directory = '')
    {
        $dirs = $this->search($type, $directory, 'path');
        $files = array();
        foreach ($dirs as $dir) {
            $this->_searchDirFiles($dir, $files);
        }
        return $files;
    }