Kirby\Cli\Command\Clear\Thumbs::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        if ($this->isInstalled() === false) {
            throw new RuntimeException('Invalid Kirby installation');
        }
        // get the thumbs folder and bootstrap kirby
        $thumbs = $this->kirby()->roots()->thumbs();
        // flush the thumbs folder
        dir::clean($thumbs);
        $output->writeln('<comment>The thumbs folder has been emptied</comment>');
        $output->writeln('');
    }