public function TempFileManagerInterface::popExt in Backup and Migrate 8.4
Return a new file based on the one passed in but with the last part of the file extension removed. For example: xxx.mysql.gz would become xxx.mysql.
Parameters
\BackupMigrate\Core\File\BackupFileInterface $file:
Return value
\BackupMigrate\Core\File\BackupFileWritableInterface A new writable backup file with the last extension removed and all of the metadata from the previous file.
1 method overrides TempFileManagerInterface::popExt()
- TempFileManager::popExt in lib/
backup_migrate_core/ src/ File/ TempFileManager.php - Return a new file based on the one passed in but with the last part of the file extension removed. For example: xxx.mysql.gz would become xxx.mysql.
File
- lib/
backup_migrate_core/ src/ File/ TempFileManagerInterface.php, line 58
Class
- TempFileManagerInterface
- Interface TempFileManagerInterface.
Namespace
BackupMigrate\Core\FileCode
public function popExt(BackupFileInterface $file);