Skip to content

Commit

Permalink
Issue moodlehq#297
Browse files Browse the repository at this point in the history
Grunt job is not ignoring hidden directories moodlehq#297
  • Loading branch information
ewallah authored May 3, 2024
1 parent 783ec09 commit 6d8c222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/GruntCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public function backupPlugin(): void
*/
public function restorePlugin(): void
{
(new Filesystem())->mirror($this->backupDir, $this->plugin->directory, null, ['delete' => true, 'override' => true]);
$flags = \FilesystemIterator::SKIP_DOTS;
$iterator = new \RecursiveDirectoryIterator($this->backupDir, $flags);
(new Filesystem())->mirror($this->backupDir, $this->plugin->directory, $iterator, ['delete' => true, 'override' => true]);
}

/**
Expand Down

0 comments on commit 6d8c222

Please sign in to comment.