Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

collection_download_clean_temp_files()

Description

Remove temporary files created during download by exiftool for adding metadata.

Parameters

ColumnTypeDefaultDescription
$deletion_array array An array of file paths

Return

void

Location

include/collections_functions.php lines 4168 to 4183

Definition

 
function collection_download_clean_temp_files(array $deletion_array)
    {
    global 
$use_zip_extension$cmdfile;

    
# Archive created, schedule the command file for deletion.
    
if (!$use_zip_extension)
        {
        
$deletion_array[]=$cmdfile;
        }
    
    
# Remove temporary files.
    
foreach($deletion_array as $tmpfile)
        {
        
delete_exif_tmpfile($tmpfile);
        }
    }

This article was last updated 25th November 2020 05:05 Europe/London time based on the source file dated 23rd November 2020 16:00 Europe/London time.