src/Service/cacheService.php
private function _makeDirectory($pathName, $mode)
    {
        is_dir(dirname($pathName)) || $this->_makeDirectory(dirname($pathName), $mode);
        return is_dir($pathName) || @mkdir($pathName, $mode);
    }
private function _makeDirectory($pathName, $mode)
    {
        is_dir(dirname($pathName)) || $this->_makeDirectory(dirname($pathName), $mode);
        return is_dir($pathName) || @mkdir($pathName, $mode);
    }
Make directory recursively

@param string $pathName The directory path.
@param int $mode<p>
The mode is 0777 by default, which means the widest possible
access. For more information on modes, read the details
on the chmod page.
@return bool Returns true on success or false on failure.
@todo need move to utility class or helper?