Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 5204 to 5219

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 19th March 2024 07:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.