public function mkDir($name, $recursive = null, $chmod = null)
    {
        // test the recursive mode with default value
        $recursive = ($recursive === null) ? $this->recursiveDirectories : $recursive;
        // test the chmod with default value
        $chmod = ($chmod === null) ? $this->defCHMOD : $chmod;
        if (!is_dir($name)) {
            return (mkdir($name)) ? true : false;
        }

        return false;
    }
public function mkDir($name, $recursive = null, $chmod = null)
    {
        // test the recursive mode with default value
        $recursive = ($recursive === null) ? $this->recursiveDirectories : $recursive;
        // test the chmod with default value
        $chmod = ($chmod === null) ? $this->defCHMOD : $chmod;
        if (!is_dir($name)) {
            return (mkdir($name)) ? true : false;
        }

        return false;
    }
public function mkDir ( $ name , $ recursive = null , $ chmod = null ) { // test the recursive mode with default value $ recursive = ( $ recursive === null ) ? $ this -> recursiveDirectories : $ recursive ; // test the chmod with default value $ chmod = ( $ chmod === null ) ? $ this -> defCHMOD : $ chmod ; if ( ! is_dir ( $ name ) ) { return ( mkdir ( $ name ) ) ? true : false ; } return false ; }
Make the dir.

@param (string) $name      Name of dir with path.
@param (string) $recursive Recursive mode create: null|true|false.
@param (string) $chmod     Directory permission on create: default 0755.

@since 2.0.0

@return bool
Make the dir .