protected function makeTemponaryBackup(Hook $hook)
    {
        $folder = $this->createTempFolder();
        $this->filesystem->copyDirectory($hook->getPath(), $folder);

        $this->tempDirectories[$hook->name] = $folder;
    }