Core/Folder.php
public static function create($path = false, $mode = 0777) {

        if($path && !self::isFolder(dirname($path)) && self::isWritable(dirname($path))) {

            mkdir($path, $mode);

            if(Folder::isFolder($path)) {

                return true;
            }
        } 

        return false;
    }
public static function create($path = false, $mode = 0777) {

        if($path && !self::isFolder(dirname($path)) && self::isWritable(dirname($path))) {

            mkdir($path, $mode);

            if(Folder::isFolder($path)) {

                return true;
            }
        } 

        return false;
    }
public static function create ( $ path = false , $ mode = 0777 ) { if ( $ path && ! self :: isFolder ( dirname ( $ path ) ) && self :: isWritable ( dirname ( $ path ) ) ) { mkdir ( $ path , $ mode ) ; if ( Folder :: isFolder ( $ path ) ) { return true ; } } return false ; }
Create an empty folder.
@param string path to file (including filename)
@param int folder permission
@example create('folder/newFolder')
@return boolean
Create an empty folder .