You are here

public function DrupalBrowserUploadDestination::fileExists in Backup and Migrate 8.4

Does the file with the given id (filename) exist in this destination.

Parameters

string $id The id (usually the filename) of the file.:

Return value

bool True if the file exists, false if it does not.

Overrides ReadableDestinationInterface::fileExists

File

src/Destination/DrupalBrowserUploadDestination.php, line 60

Class

DrupalBrowserUploadDestination
Class BrowserUploadDestination.

Namespace

BackupMigrate\Drupal\Destination

Code

public function fileExists($id) {
  return (bool) \Drupal::request()->files
    ->has("files[{$id}]");
}