You are here

public function backup_migrate_destination_files::confirm_destination in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/destinations.file.inc \backup_migrate_destination_files::confirm_destination()
  2. 6.3 includes/destinations.file.inc \backup_migrate_destination_files::confirm_destination()

Check that a destination is valid.

Overrides backup_migrate_destination::confirm_destination

1 call to backup_migrate_destination_files::confirm_destination()
backup_migrate_destination_files::_save_file in includes/destinations.file.inc
File save destination callback.

File

includes/destinations.file.inc, line 201
A destination type for saving locally to the server.

Class

backup_migrate_destination_files
A destination type for saving locally to the server.

Code

public function confirm_destination() {
  if ($dir = $this
    ->get_location()) {
    return $this
      ->check_dir($dir);
  }
  return FALSE;
}