diff --git a/src/Command/GruntCommand.php b/src/Command/GruntCommand.php index f2415aef..7634367e 100644 --- a/src/Command/GruntCommand.php +++ b/src/Command/GruntCommand.php @@ -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]); } /**