You are here

function backup_migrate_destination::list_files in Backup and Migrate 8.2

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

List all the available files in the given destination with their destination specific id.

1 call to backup_migrate_destination::list_files()
backup_migrate_destination::file_exists in includes/destinations.inc
Check if a file exists in the given destination.

File

includes/destinations.inc, line 637

Class

backup_migrate_destination
A base class for creating destinations.

Code

function list_files() {
  $out = NULL;
  if ($this->cache_files) {
    $out = $this
      ->file_cache_get();
  }
  if ($out === NULL) {
    $out = $this
      ->_list_files();
    $out = $this
      ->load_files_info($out);
    if ($this->cache_files) {
      $this
        ->file_cache_set($out);
    }
  }
  return $out;
}