public function ReadableStreamBackupFile::realpath in Backup and Migrate 5.0.x
Get the realpath of the file.
Return value
string The path or stream URI to the file or NULL if the file does not exist.
Overrides BackupFileReadableInterface::realpath
4 calls to ReadableStreamBackupFile::realpath()
- ReadableStreamBackupFile::loadFileStats in src/
Core/ File/ ReadableStreamBackupFile.php - Get info about the file and load them as metadata.
- ReadableStreamBackupFile::openForRead in src/
Core/ File/ ReadableStreamBackupFile.php - Open a file for reading or writing.
- WritableStreamBackupFile::openForWrite in src/
Core/ File/ WritableStreamBackupFile.php - Open a file for reading or writing.
- WritableStreamBackupFile::write in src/
Core/ File/ WritableStreamBackupFile.php - Write a line to the file.
File
- src/
Core/ File/ ReadableStreamBackupFile.php, line 60
Class
- ReadableStreamBackupFile
- Uses a readable PHP stream such as a local file.
Namespace
Drupal\backup_migrate\Core\FileCode
public function realpath() {
if (file_exists($this->path)) {
return $this->path;
}
return NULL;
}