Documentation

CreateDirectory

CBXVirtualDirectory
CBXVirtualIo::CreateDirectory(
 string $path
);

The method creates specified folder, if doesn't exist. Returns object of created or existing folder or null in case of error. Receives absolute path on input. Non-static method.

Parameters

Parameter Description
path Path

Example

if (!$io->CreateDirectory($io->RelativeToAbsolutePath($path)))
 die();


© «Bitrix24», 2001-2024
Up