You are here

protected function InPlaceUpdate::getFileRealPath in Automatic Updates 8

Get file real path.

Parameters

\SplFileInfo $file: The file to retrieve the real path.

Return value

string The file real path.

3 calls to InPlaceUpdate::getFileRealPath()
InPlaceUpdate::doRestore in src/Services/InPlaceUpdate.php
Do restore.
InPlaceUpdate::processUpdate in src/Services/InPlaceUpdate.php
Process update.
InPlaceUpdate::rollback in src/Services/InPlaceUpdate.php
Rollback after a failed update.

File

src/Services/InPlaceUpdate.php, line 561

Class

InPlaceUpdate
Class to apply in-place updates.

Namespace

Drupal\automatic_updates\Services

Code

protected function getFileRealPath(\SplFileInfo $file) {
  $real_path = $file
    ->getRealPath();
  if (!$real_path) {
    throw new FileException(sprintf('Could not get real path for "%s"', $file
      ->getFilename()));
  }
  return $real_path;
}