function backup_migrate_destination::file_exists in Backup and Migrate 8.3
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_destination::file_exists()
- 6.3 includes/destinations.inc \backup_migrate_destination::file_exists()
- 6.2 includes/destinations.inc \backup_migrate_destination::file_exists()
- 7.3 includes/destinations.inc \backup_migrate_destination::file_exists()
- 7.2 includes/destinations.inc \backup_migrate_destination::file_exists()
Check if a file exists in the given destination.
File
- includes/
destinations.inc, line 829
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]);
}