public function Updater::getBackupDir

7.x updater.inc public Updater::getBackupDir()

Return the full path to a directory where backups should be written.

1 call to Updater::getBackupDir()
Updater::getInstallArgs in drupal-7.x/includes/updater.inc
Store the default parameters for the Updater.

File

drupal-7.x/includes/updater.inc, line 372
Classes used for updating various files in the Drupal webroot. These classes use a FileTransfer object to actually perform the operations. Normally, the FileTransfer is provided when the site owner is redirected to authorize.php as part of a multistep…

Class

Updater
Base class for Updaters used in Drupal.

Code

public function getBackupDir() {
  return file_stream_wrapper_get_instance_by_scheme('temporary')->getDirectoryPath();
}