You are here

function backup_migrate_destination::file_exists in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination::file_exists()
  2. 8.3 includes/destinations.inc \backup_migrate_destination::file_exists()
  3. 6.3 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.

File

includes/destinations.inc, line 626

Class

backup_migrate_destination
A base class for creating destinations.

Code

function file_exists($file_id) {

  // Check if the file exists in the list of available files. Actual destination types may have more efficient ways of doing this.
  $files = $this
    ->list_files();
  return isset($files[$file_id]);
}