You are here

public function backup_migrate_destination_ftp::_list_files in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_list_files()
  2. 8.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_list_files()
  3. 6.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_list_files()
  4. 6.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_list_files()
  5. 7.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_list_files()

List all the available files in the given destination.

Includes their destination specific id.

Overrides backup_migrate_destination::_list_files

File

includes/destinations.ftp.inc, line 53
Functions to handle the FTP backup destination.

Class

backup_migrate_destination_ftp
A destination for sending database backups to an FTP server.

Code

public function _list_files() {
  require_once dirname(__FILE__) . '/files.inc';
  $files = array();
  $this
    ->ftp_object();
  $ftp_files = (array) drupal_ftp_file_list('.', $this->ftp);
  foreach ($ftp_files as $file) {
    $files[$file['filename']] = new backup_file($file);
  }
  return $files;
}