You are here

function backup_migrate_destination_nodesquirrel::_list_files in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::_list_files()
  2. 6.3 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::_list_files()
  3. 7.2 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::_list_files()

List the files in the remote destination.

Overrides backup_migrate_destination::_list_files

File

includes/destinations.nodesquirrel.inc, line 263
Functions to handle the NodeSquirrel backup destination.

Class

backup_migrate_destination_nodesquirrel
A destination for sending database backups to the NodeSquirel backup service.

Code

function _list_files() {
  $files = array();
  backup_migrate_include('files');
  if ($destination = $this
    ->_get_destination()) {
    $file_list = $this
      ->_xmlrpc('backups.listFiles', array(
      $destination,
    ));
    foreach ((array) $file_list as $file) {
      $files[$file['filename']] = new backup_file($file);
    }
  }
  return $files;
}