Driver/LocalDriver.php
private function scanDir($dir, $onlyDir = 0)
    {
        $files = array();
        foreach (glob($dir.'/*', $onlyDir) as $name) {
            if ($this->isShowFile($name, $this->driverOptions['showHidden'])) {
                $file = $this->getFileInfo($name);
                $this->setDirs($file, $name);
                $files[] = $file;
            }
        }

        return $files;
    }
private function scanDir($dir, $onlyDir = 0)
    {
        $files = array();
        foreach (glob($dir.'/*', $onlyDir) as $name) {
            if ($this->isShowFile($name, $this->driverOptions['showHidden'])) {
                $file = $this->getFileInfo($name);
                $this->setDirs($file, $name);
                $files[] = $file;
            }
        }

        return $files;
    }
private function scanDir ( $ dir , $ onlyDir = 0 ) { $ files = array ( ) ; foreach ( glob ( $ dir . '/*' , $ onlyDir ) as $ name ) { if ( $ this -> isShowFile ( $ name , $ this -> driverOptions [ 'showHidden' ] ) ) { $ file = $ this -> getFileInfo ( $ name ) ; $ this -> setDirs ( $ file , $ name ) ; $ files [ ] = $ file ; } } return $ files ; }
get Files by dir name.

@param string $dir
@param int    $onlyDir

@return FileInfo[]
get Files by dir name .