Documentation

createDirectory

public static
\Bitrix\Main\IO\Directory::createDirectory(
 string $path
);

Static method creates a directory. Essentially, this method is a wrapper for standard repeated code mkdir($dir, BX_DIR_PERMISSIONS, true).

Similar to function CheckDirPath in the old core.

Parameters

ParameterDescriptionVersion
$pathFull path to server root.

Example



© «Bitrix24», 2001-2022
Up