You are here

public function TempFileAdapter::deleteAllTempFiles in Backup and Migrate 8.4

Delete all temp files which have been created.

Overrides TempFileAdapterInterface::deleteAllTempFiles

1 call to TempFileAdapter::deleteAllTempFiles()
TempFileAdapter::__destruct in lib/backup_migrate_core/src/File/TempFileAdapter.php
Destruct the manager. Delete all the temporary files when this manager is destroyed.

File

lib/backup_migrate_core/src/File/TempFileAdapter.php, line 105

Class

TempFileAdapter
Provides a very basic temp file manager which assumes read/write access to a local temp directory.

Namespace

BackupMigrate\Core\File

Code

public function deleteAllTempFiles() {
  foreach ($this->tempfiles as $file) {
    $this
      ->deleteTempFile($file);
  }
}