Collections functions
Encryption functions
General functions
Theme permission 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 3951 to 3966

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 15th July 2020 03:05 Europe/London time based on the source file dated 14th July 2020 15:34 Europe/London time.