public function sitemapAction($path)
    {
        try {
            $this->setPath($path);
        } catch (NotFoundException $e) {
            throw $e;
        }

        $dbfile = new WDBFile($this->getpath());
        if (!$dbfile->isDir()) {
            throw new NotFoundException(
                'Can not build a sitemap from a single file!',
                0, null, TemplateHelper::getRoute($dbfile->getWDBPath())
            );
        }

        $this->wdb->getResponse()->setContentType('xml');

        $contents       = Helper::getFlatDirscans($dbfile->getWDBScanStack(true));
        $rss_content    = $this->wdb->display('', 'sitemap', array(
            'page'          => $dbfile->getWDBStack(),
            'contents'      => $contents
        ));
        return array('layout_empty_xml', $rss_content);
    }