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;
    }