Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 02d70e6

Browse files
committed
Minor bugfix
1 parent 196cacf commit 02d70e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System/UnixSystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function ensurePath($path)
117117
{
118118
$absPath = $this->getAbsolutePath($path);
119119

120-
if (false === mkdir($this->getAbsolutePath($path), 0755, true)) {
120+
if (!file_exists($absPath) && false === mkdir($absPath, 0755, true)) {
121121
throw new \RuntimeException('Unable to create the specified directory ('.$absPath.').');
122122
}
123123

0 commit comments

Comments
 (0)