diff --git a/src/FileSystem.php b/src/FileSystem.php index 011fafc..ced5c1c 100644 --- a/src/FileSystem.php +++ b/src/FileSystem.php @@ -5,8 +5,6 @@ use \Exception; use \Throwable; use \FilesystemIterator; -use \RecursiveDirectoryIterator; -use \RecursiveIteratorIterator; /** * Class FileSystem @@ -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; } /**