Documentation

FileExists

bool
CBXVirtualIo::FileExists(
 string $path
);

The method checks if a specified file exists. Receives absolute path on input. Non-static method.

Parameters

Parameter Description
path Path

Example

echo $io->FileExists($io->RelativeToAbsolutePath("folder1/file.php")); 


© «Bitrix24», 2001-2024