public function ifDirDoesNotExistCreate($directory, $recursive = false)
    {
        if ($this->isDir($directory) === false) {
            $this->mkdir($directory, $recursive);

            return true;
        } else {
            return false;
        }
    }
public function ifDirDoesNotExistCreate($directory, $recursive = false)
    {
        if ($this->isDir($directory) === false) {
            $this->mkdir($directory, $recursive);

            return true;
        } else {
            return false;
        }
    }
public function ifDirDoesNotExistCreate ( $ directory , $ recursive = false ) { if ( $ this -> isDir ( $ directory ) === false ) { $ this -> mkdir ( $ directory , $ recursive ) ; return true ; } else { return false ; } }
Create dir if not exist
@param  string  $directory
@param  boolean $recursive
@return boolean
Create dir if not exist