You are here

public function DirectoryDestination::fileExists in Backup and Migrate 5.0.x

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 Whether the file exists in this destination.

Overrides ReadableDestinationInterface::fileExists

2 calls to DirectoryDestination::fileExists()
DirectoryDestination::getFile in src/Core/Destination/DirectoryDestination.php
Get a file object representing the file with the given ID from the dest.
DirectoryDestination::loadFileForReading in src/Core/Destination/DirectoryDestination.php
Load the file with the given ID from the destination.

File

src/Core/Destination/DirectoryDestination.php, line 202

Class

DirectoryDestination
@package Drupal\backup_migrate\Core\Destination

Namespace

Drupal\backup_migrate\Core\Destination

Code

public function fileExists($id) {
  return file_exists($this
    ->idToPath($id));
}