Documentation

GetFile

CBXVirtualFile
CBXVirtualIo::GetFile(
 string $path
);

The method returns file class object for a specified path. Receives absolute path on input. File existence is not checked. Non-static method.

Parameters

Parameter Description
path Path

Example

$fp = $io->RelativeToAbsolutePath("/folder1/.access.php");
$f = $io->GetFile($fp);
$f->MarkWritable();
$io->Delete($fp);


© «Bitrix24», 2001-2022
Up