Skip to content

Commit

Permalink
add: return val
Browse files Browse the repository at this point in the history
  • Loading branch information
Player626 committed Mar 17, 2021
1 parent 283400a commit ae7b39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use \Exception;
use \Throwable;
use \FilesystemIterator;
use \RecursiveDirectoryIterator;
use \RecursiveIteratorIterator;

/**
* Class FileSystem
Expand Down Expand Up @@ -295,12 +293,14 @@ public function glob(string $pattern, int $flags = 0)
* @param string $path
* @param int $mode
* @param bool $recursive
* @return bool
*/
public function ensureDirectoryExists(string $path, $mode = 0755, bool $recursive = true)
{
if (!$this->isDirectory($path)) {
$this->makeDirectory($path, $mode, $recursive);
return $this->makeDirectory($path, $mode, $recursive);
}
return true;
}

/**
Expand Down

0 comments on commit ae7b39d

Please sign in to comment.