src/Ubiquity/utils/base/UFileSystem.php
public static function safeMkdir($dir, $mode = 0777, $recursive = true) {
		if (! \is_dir ( $dir ))
			return \mkdir ( $dir, $mode, $recursive );
		return true;
	}
public static function safeMkdir($dir, $mode = 0777, $recursive = true) {
		if (! \is_dir ( $dir ))
			return \mkdir ( $dir, $mode, $recursive );
		return true;
	}
public static function safeMkdir ( $ dir , $ mode = 0777 , $ recursive = true ) { if ( ! \ is_dir ( $ dir ) ) return \ mkdir ( $ dir , $ mode , $ recursive ) ; return true ; }
Tests the existance and eventually creates a directory

@param string $dir
@param int $mode
@param boolean $recursive
@return boolean
Tests the existance and eventually creates a directory