You are here

public function TempFileManagerInterface::pushExt in Backup and Migrate 8.4

Return a new file based on the passed in file with the given file extension. This should maintain the metadata of the file passed in with the new file extension added after the old one. For example: xxx.mysql would become xxx.mysql.gz.

Parameters

\BackupMigrate\Core\File\BackupFileInterface $file: The file to add the extension to.

$ext: The new file extension.

Return value

\BackupMigrate\Core\File\BackupFileWritableInterface A new writable backup file with the new extension and all of the metadata from the previous file.

1 method overrides TempFileManagerInterface::pushExt()
TempFileManager::pushExt in lib/backup_migrate_core/src/File/TempFileManager.php
Return a new file based on the passed in file with the given file extension. This should maintain the metadata of the file passed in with the new file extension added after the old one. For example: xxx.mysql would become xxx.mysql.gz.

File

lib/backup_migrate_core/src/File/TempFileManagerInterface.php, line 45

Class

TempFileManagerInterface
Interface TempFileManagerInterface.

Namespace

BackupMigrate\Core\File

Code

public function pushExt(BackupFileInterface $file, $ext);