ApiGen\Console\Command\GenerateCommand::cleanDestinationWithCaution PHP Method

cleanDestinationWithCaution() private method

private cleanDestinationWithCaution ( string $destination )
$destination string
    private function cleanDestinationWithCaution($destination)
    {
        if (!$this->fileSystem->isDirEmpty($destination)) {
            if ($this->io->ask('<warning>Destination is not empty. Do you want to erase it?</warning>', true)) {
                $this->fileSystem->purgeDir($destination);
            }
        }
    }