protected function _setDir($path) {
        if ($handle = opendir($path)) {
            while (false !== ($entry = readdir($handle))) {
                $extension = explode('.', basename($entry));
                $ext = $extension[count($extension) - 1];

                if ($ext == $this->_type) {
                    $this->_setFile($path . $entry);
                }
            }

            closedir($handle);
        }
    }