Skip to content

Commit

Permalink
bugfix: file_exist()
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-Stelmaczonek committed Dec 15, 2023
1 parent 75d7cee commit 2776aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/persistence/class.PhpFileDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ private function writeFile($id, $value, $preWriteValueProcessor = null)
*/
private function makeDirectory(string $path, int $mode)
{
if (is_dir($path) || is_file($path) || @mkdir($path, $mode, true)) {
return true;
if (!file_exists($path)) {
@mkdir($path, $mode, true);
}

if (is_dir($path)) {
Expand Down

0 comments on commit 2776aef

Please sign in to comment.