Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnokia committed Mar 23, 2024
1 parent ca5fe74 commit 91f3562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Commands/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ public function handle(): int
{
$finder = new Finder();

$finder->in(getcwd() . '/public')->files('*.html');
$finder->files()->in(getcwd() . '/public')->name('*.html');

foreach ($finder as $file) {
unlink($file->getRealPath());
}

$this->info('Cleaned the public directory');

return 0;
}
}

0 comments on commit 91f3562

Please sign in to comment.