src/FS/Folder/Editor.php
public static function createFolder( $folderName, $mode = 0770, $userName = NULL, $groupName = NULL )
	{
		if( self::isFolder( $folderName ) )
			return FALSE;
		if( false === @mkdir( $folderName, $mode, TRUE ) )									//  create Folder recursive
			throw new RuntimeException( 'Folder "'.$folderName.'" could not be created' );
		chmod( $folderName, $mode );
		if( $userName )																		//  User is set
			chown( $folderName, $userName );												//  change Owner to User
		if( $groupName )																	//  Group is set
			chgrp( $folderName, $groupName );
		return TRUE;
	}
public static function createFolder( $folderName, $mode = 0770, $userName = NULL, $groupName = NULL )
	{
		if( self::isFolder( $folderName ) )
			return FALSE;
		if( false === @mkdir( $folderName, $mode, TRUE ) )									//  create Folder recursive
			throw new RuntimeException( 'Folder "'.$folderName.'" could not be created' );
		chmod( $folderName, $mode );
		if( $userName )																		//  User is set
			chown( $folderName, $userName );												//  change Owner to User
		if( $groupName )																	//  Group is set
			chgrp( $folderName, $groupName );
		return TRUE;
	}
public static function createFolder ( $ folderName , $ mode = 0770 , $ userName = NULL , $ groupName = NULL ) { if ( self :: isFolder ( $ folderName ) ) return FALSE ; if ( false === @ mkdir ( $ folderName , $ mode , TRUE ) ) //  create Folder recursive throw new RuntimeException ( 'Folder "' . $ folderName . '" could not be created' ) ; chmod ( $ folderName , $ mode ) ; if ( $ userName ) //  User is set chown ( $ folderName , $ userName ) ; //  change Owner to User if ( $ groupName ) //  Group is set chgrp ( $ folderName , $ groupName ) ; return TRUE ; }
Creates a Folder by creating all Folders in Path recursive.
@access		public
@static
@param		string		$folderName		Folder to create
@param		int			$mode			Permission Mode, default: 0770
@param		string		$userName		User Name
@param		string		$groupName		Group Name
@return		bool
Creates a Folder by creating all Folders in Path recursive .