function ensureDirExists($path, $owner = null, $mode = 0755)
    {
        if (! $this->isDir($path)) {
            $this->mkdir($path, $owner, $mode);
        }
    }
function ensureDirExists($path, $owner = null, $mode = 0755)
    {
        if (! $this->isDir($path)) {
            $this->mkdir($path, $owner, $mode);
        }
    }
function ensureDirExists ( $ path , $ owner = null , $ mode = 0755 ) { if ( ! $ this -> isDir ( $ path ) ) { $ this -> mkdir ( $ path , $ owner , $ mode ) ; } }
Ensure that the given directory exists.

@param  string  $path
@param  string|null  $owner
@param  int  $mode
@return void
Ensure that the given directory exists .