public function flush()
    {
        /** @var Node $node */
        foreach ($this->getFolder()->getNodes() as $node) {
            if ($node->details->isFile()) {
                $node->delete();
            }
        }

        return $this;
    }