original_string: protected static function createDirectoryPath($fullDirectoryPath) {
  		$currentPath = $fullDirectoryPath;
  		$firstCreatedPath = '';
  		$permissionMask = octdec($GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask']);
  		if (!@is_dir($currentPath)) {
  			do {
  				$firstCreatedPath = $currentPath;
  				$separatorPosition = strrpos($currentPath, DIRECTORY_SEPARATOR);
  				$currentPath = substr($currentPath, 0, $separatorPosition);
  			} while (!is_dir($currentPath) && $separatorPosition !== FALSE);
  
  			$result = @mkdir($fullDirectoryPath, $permissionMask, TRUE);
  			if (!$result) {
  				throw new \RuntimeException('Could not create directory "' . $fullDirectoryPath . '"!', 1170251400);
  			}
  		}
  		return $firstCreatedPath;
  	}
code: protected static function createDirectoryPath($fullDirectoryPath) {
  		$currentPath = $fullDirectoryPath;
  		$firstCreatedPath = '';
  		$permissionMask = octdec($GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask']);
  		if (!@is_dir($currentPath)) {
  			do {
  				$firstCreatedPath = $currentPath;
  				$separatorPosition = strrpos($currentPath, DIRECTORY_SEPARATOR);
  				$currentPath = substr($currentPath, 0, $separatorPosition);
  			} while (!is_dir($currentPath) && $separatorPosition !== FALSE);
  
  			$result = @mkdir($fullDirectoryPath, $permissionMask, TRUE);
  			if (!$result) {
  				throw new \RuntimeException('Could not create directory "' . $fullDirectoryPath . '"!', 1170251400);
  			}
  		}
  		return $firstCreatedPath;
  	}
code_tokens: protected static function createDirectoryPath ( $ fullDirectoryPath ) { $ currentPath = $ fullDirectoryPath ; $ firstCreatedPath = '' ; $ permissionMask = octdec ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'BE' ] [ 'folderCreateMask' ] ) ; if ( ! @ is_dir ( $ currentPath ) ) { do { $ firstCreatedPath = $ currentPath ; $ separatorPosition = strrpos ( $ currentPath , DIRECTORY_SEPARATOR ) ; $ currentPath = substr ( $ currentPath , 0 , $ separatorPosition ) ; } while ( ! is_dir ( $ currentPath ) && $ separatorPosition !== FALSE ) ; $ result = @ mkdir ( $ fullDirectoryPath , $ permissionMask , TRUE ) ; if ( ! $ result ) { throw new \ RuntimeException ( 'Could not create directory "' . $ fullDirectoryPath . '"!' , 1170251400 ) ; } } return $ firstCreatedPath ; }
docstring: Creates directories for the specified paths if they do not exist. This
  functions sets proper permission mask but does not set proper user and
  group.
  
  @static
  @param string $fullDirectoryPath
  @return string Path to the the first created directory in the hierarchy
  @see t3lib_div::mkdir_deep
  @throws \RuntimeException If directory could not be created
docstring_tokens: Creates directories for the specified paths if they do not exist . This functions sets proper permission mask but does not set proper user and group .