function backup_migrate_destination_files::can_read_file in Backup and Migrate 7.2
Same name and namespace in other branches
- 8.2 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
- 8.3 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
- 6.3 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
- 6.2 includes/destinations.file.inc \backup_migrate_destination_files::can_read_file()
- 7.3 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 61 - 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));
}