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
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-2024
Up