public function hasFile($name)
    {
        foreach ($this->nodes as $node) {
            if ($node->details->getFilename() == $name
                && !$node->details->isDir()
            ) {
                return true;
            }
        }
        return false;
    }