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 4471 to 4486

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 17th May 2021 23:05 Europe/London time based on the source file dated 10th May 2021 09:15 Europe/London time.