diff --git a/src/Command/GenerateManifestCommand.php b/src/Command/GenerateManifestCommand.php index 3866a0c..b1ecda3 100644 --- a/src/Command/GenerateManifestCommand.php +++ b/src/Command/GenerateManifestCommand.php @@ -62,7 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $assetFolder = '/' . trim((string) $input->getArgument('asset_folder'), '/'); $outputFile = '/' . trim((string) $input->getArgument('output'), '/'); - $this->createDirectory($publicFolder); + $this->filesystem->mkdir($publicFolder); $manifest = $this->processIcons($io, $manifest, $publicUrl, $publicFolder, $assetFolder); if ($manifest === self::FAILURE) { @@ -92,14 +92,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int return self::SUCCESS; } - private function createDirectory(string $folderPath): void - { - if ($this->filesystem->exists($folderPath)) { - $this->filesystem->remove($folderPath); - } - $this->filesystem->mkdir($folderPath); - } - /** * @param array $components * @return array{src: string, type: string}