public static function mkdir_deep($directory, $deepDirectory = '') {
		if (!is_string($directory)) {
			throw new \InvalidArgumentException(
				'The specified directory is of type "' . gettype($directory) . '" but a string is expected.',
				1303662955
			);
		}
		if (!is_string($deepDirectory)) {
			throw new \InvalidArgumentException(
				'The specified directory is of type "' . gettype($deepDirectory) . '" but a string is expected.',
				1303662956
			);
		}

		$fullPath = $directory . $deepDirectory;
		if (!is_dir($fullPath) && strlen($fullPath) > 0) {
			$firstCreatedPath = self::createDirectoryPath($fullPath);
			if ($firstCreatedPath !== '') {
				self::fixPermissions($firstCreatedPath, TRUE);
			}
		}
	}
public static function mkdir_deep($directory, $deepDirectory = '') {
		if (!is_string($directory)) {
			throw new \InvalidArgumentException(
				'The specified directory is of type "' . gettype($directory) . '" but a string is expected.',
				1303662955
			);
		}
		if (!is_string($deepDirectory)) {
			throw new \InvalidArgumentException(
				'The specified directory is of type "' . gettype($deepDirectory) . '" but a string is expected.',
				1303662956
			);
		}

		$fullPath = $directory . $deepDirectory;
		if (!is_dir($fullPath) && strlen($fullPath) > 0) {
			$firstCreatedPath = self::createDirectoryPath($fullPath);
			if ($firstCreatedPath !== '') {
				self::fixPermissions($firstCreatedPath, TRUE);
			}
		}
	}
public static function mkdir_deep ( $ directory , $ deepDirectory = '' ) { if ( ! is_string ( $ directory ) ) { throw new \ InvalidArgumentException ( 'The specified directory is of type "' . gettype ( $ directory ) . '" but a string is expected.' , 1303662955 ) ; } if ( ! is_string ( $ deepDirectory ) ) { throw new \ InvalidArgumentException ( 'The specified directory is of type "' . gettype ( $ deepDirectory ) . '" but a string is expected.' , 1303662956 ) ; } $ fullPath = $ directory . $ deepDirectory ; if ( ! is_dir ( $ fullPath ) && strlen ( $ fullPath ) > 0 ) { $ firstCreatedPath = self :: createDirectoryPath ( $ fullPath ) ; if ( $ firstCreatedPath !== '' ) { self :: fixPermissions ( $ firstCreatedPath , TRUE ) ; } } }
Creates a directory - including parent directories if necessary and
sets permissions on newly created directories.

@param string $directory Target directory to create. Must a have trailing slash
if second parameter is given!
Example: "/root/typo3site/typo3temp/foo/"
@param string $deepDirectory Directory to create. This second parameter
is kept for backwards compatibility since 4.6 where this method
was split into a base directory and a deep directory to be created.
Example: "xx/yy/" which creates "/root/typo3site/xx/yy/" if $directory is "/root/typo3site/"
@return void
@throws \InvalidArgumentException If $directory or $deepDirectory are not strings
@throws \RuntimeException If directory could not be created
Creates a directory - including parent directories if necessary and sets permissions on newly created directories .