You are here

protected static function InPlaceUpdate::getTempDirectory in Automatic Updates 7

Provides the temporary extraction directory.

Return value

string The temporary directory.

4 calls to InPlaceUpdate::getTempDirectory()
InPlaceUpdate::backup in ./InPlaceUpdate.php
Backup before an update.
InPlaceUpdate::getDeletions in ./InPlaceUpdate.php
Get an iterator of files to delete.
InPlaceUpdate::processUpdate in ./InPlaceUpdate.php
Process update.
InPlaceUpdate::rollback in ./InPlaceUpdate.php
Rollback after a failed update.

File

./InPlaceUpdate.php, line 484

Class

InPlaceUpdate
Class to apply in-place updates.

Code

protected static function getTempDirectory() {
  if (!self::$tempDirectory) {
    self::$tempDirectory = file_create_filename('automatic_updates-update', 'temporary://');
    file_prepare_directory(self::$tempDirectory, FILE_CREATE_DIRECTORY);
    self::$tempDirectory = drupal_realpath(self::$tempDirectory) . DIRECTORY_SEPARATOR;
  }
  return self::$tempDirectory;
}