Skip to content

Commit

Permalink
visuellverstehen#4 Remove files after download
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Lademann committed Apr 19, 2021
1 parent a7266b1 commit b0b367f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/FetchWebsiteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$fetchDirectory = Environment::getPublicPath() . '/typo3temp/t3fetch';

// Remove fetch directory
exec('rm -rf ' . $fetchDirectory);

// Create fetch directory
exec('mkdir ' . $fetchDirectory);

// Fetch website recursively
exec('wget -q -r ' . $input->getArgument('baseUrl') . ' -R "' . self::REJECT . '" -P ' . $fetchDirectory, $output, $status);

// Remove fetch directory
exec('rm -rf ' . $fetchDirectory);

return $status;
}
}

0 comments on commit b0b367f

Please sign in to comment.