You are here

function backup_migrate_destination_file_exists in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.inc \backup_migrate_destination_file_exists()
  2. 6.3 includes/destinations.inc \backup_migrate_destination_file_exists()
  3. 6.2 includes/destinations.inc \backup_migrate_destination_file_exists()
  4. 7.3 includes/destinations.inc \backup_migrate_destination_file_exists()
  5. 7.2 includes/destinations.inc \backup_migrate_destination_file_exists()

Check if a file exists in the given destination.

2 calls to backup_migrate_destination_file_exists()
backup_migrate_ui_destination_delete_file in includes/destinations.inc
Menu callback to delete a file from a destination.
backup_migrate_ui_destination_restore_file in includes/destinations.inc
Restore a backup file from a destination.

File

includes/destinations.inc, line 217

Code

function backup_migrate_destination_file_exists($destination_id, $file_id) {
  if ($destination = backup_migrate_get_destination($destination_id)) {
    return $destination
      ->file_exists($file_id);
  }
  return NULL;
}