// Verify if the file would actually pass the upload checks to prevent any unnecessary processing (e.g. collections)
$dry_run_process_file_upload = process_file_upload(
new SplFileInfo($fullpath),
new SplFileInfo(get_temp_dir(false) . '/staticsync/' . generateSecureKey(16) . '.bin'),
['file_move' => 'dry_run']
);
if (!$dry_run_process_file_upload['success']) {
printf(
' * Skipping file - %s: %s%s',
$fullpath,
$dry_run_process_file_upload['error']->i18n($lang),
PHP_EOL
);
continue;
}