private function buildFilters()
    {
        $filters = array();

        // file only ? or direcotry only ?
        if ($this->file_only) $filters[] = new Filter\FileOnlyFilter();
        if ($this->directory_only) $filters[] = new Filter\DirectoryOnlyFilter();

        // name match ?
        foreach ($this->names as $name) {
            $filters[] = new Filter\NameFilter($name);
        }

        return $filters;
    }