You are here

function backup_migrate_destination_files::can_read_file in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
  2. 6.3 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
  3. 6.2 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
  4. 7.3 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
  5. 7.2 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()

Determine if we can read the given file.

Overrides backup_migrate_destination::can_read_file

File

includes/destinations.file.inc, line 62
A destination type for saving locally to the server.

Class

backup_migrate_destination_files
A destination type for saving locally to the server.

Code

function can_read_file($file_id) {
  return $this
    ->op('restore') && is_readable($this
    ->get_filepath($file_id));
}