You are here

public function ArchiveWriterInterface::addFile in Backup and Migrate 8.4

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 lib/backup_migrate_core/src/Service/TarArchiveWriter.php

File

lib/backup_migrate_core/src/Service/ArchiveWriterInterface.php, line 34

Class

ArchiveWriterInterface
Interface ArchiveReaderInterface.

Namespace

BackupMigrate\Core\Service

Code

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