You are here

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

Save a file to the destination.

Parameters

\Drupal\backup_migrate\Core\File\BackupFileReadableInterface $file: The file to save.

Overrides DestinationBase::saveFile

File

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

Class

DirectoryDestination
@package Drupal\backup_migrate\Core\Destination

Namespace

Drupal\backup_migrate\Core\Destination

Code

public function saveFile(BackupFileReadableInterface $file) {
  $this
    ->saveTheFile($file);
  $this
    ->saveTheFileMetadata($file);
}