You are here

function ReadableStreamBackupFile::realpath in Backup and Migrate 8.4

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::openForRead in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Open a file for reading or writing.
ReadableStreamBackupFile::_loadFileStats in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Get info about the file and load them as metadata.
WritableStreamBackupFile::openForWrite in lib/backup_migrate_core/src/File/WritableStreamBackupFile.php
Open a file for reading or writing.
WritableStreamBackupFile::write in lib/backup_migrate_core/src/File/WritableStreamBackupFile.php
Write a line to the file.

File

lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php, line 61

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

function realpath() {
  if (file_exists($this->path)) {
    return $this->path;
  }
  return NULL;
}