You are here

function _backup_migrate_temp_files_delete in Backup and Migrate 6

Same name and namespace in other branches
  1. 8.2 includes/files.inc \_backup_migrate_temp_files_delete()
  2. 8.3 includes/files.inc \_backup_migrate_temp_files_delete()
  3. 5.2 includes/files.inc \_backup_migrate_temp_files_delete()
  4. 5 backup_migrate.module \_backup_migrate_temp_files_delete()
  5. 6.3 includes/files.inc \_backup_migrate_temp_files_delete()
  6. 6.2 includes/files.inc \_backup_migrate_temp_files_delete()
  7. 7.3 includes/files.inc \_backup_migrate_temp_files_delete()
  8. 7.2 includes/files.inc \_backup_migrate_temp_files_delete()

Delete all temporary files.

1 call to _backup_migrate_temp_files_delete()
_backup_migrate_temp_file in ./backup_migrate.module
Get a temp file. Store it in the normal save path for slightly better security in shared environments.

File

./backup_migrate.module, line 939
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (f.e. cache_*)

Code

function _backup_migrate_temp_files_delete($files) {
  foreach ($files as $file) {
    if (file_exists($file)) {
      @unlink($file);
    }
  }
}