General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
CombinePath
Copy
CreateDirectory
Delete
DirectoryExists
ExtractNameFromPath
ExtractPathFromPath
FileExists
GetDirectory
GetFile
Move
RelativeToAbsolutePath
SiteRelativeToAbsolutePath
ValidateFalenameString
ValidatePathString
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