Skip to content

Commit 39aa707

Browse files
committed
Don't delete HTML directory
1 parent 43d8044 commit 39aa707

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Command/CommandInitializerTrait.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,7 @@ private function initializeSourceDir(InputInterface $input, Filesystem $filesyst
7070

7171
private function initializeHtmlOutputDir(Filesystem $filesystem, string $path): string
7272
{
73-
$htmlOutputDir = rtrim($this->getRealAbsolutePath($path, $filesystem), '/');
74-
if ($filesystem->exists($htmlOutputDir)) {
75-
$filesystem->remove($htmlOutputDir);
76-
}
77-
78-
return $htmlOutputDir;
73+
return rtrim($this->getRealAbsolutePath($path, $filesystem), '/');
7974
}
8075

8176
private function initializeParseSubPath(InputInterface $input, string $sourceDir): string

0 commit comments

Comments
 (0)