You are here

public function ArchiveWriterInterface::addFile in Backup and Migrate 5.0.x

Parameters

string $real_path: The real path to the file. Can be a stream URI.

string $new_path: The path that the file should have in the archive. Leave blank to use the original path.

1 method overrides ArchiveWriterInterface::addFile()
TarArchiveWriter::addFile in src/Core/Service/TarArchiveWriter.php

File

src/Core/Service/ArchiveWriterInterface.php, line 38

Class

ArchiveWriterInterface
Interface ArchiveReaderInterface.

Namespace

Drupal\backup_migrate\Core\Service

Code

public function addFile($real_path, $new_path = '');