/**
 * Implements hook_verify_update_archive().
 */
function {{ machine_name }}_verify_update_archive($project, $archive_file, $directory) {
  $errors = [];
  if (!file_exists($directory)) {
    $errors[] = t('The %directory does not exist.', ['%directory' => $directory]);
  }
  // Add other checks on the archive integrity here.
  return $errors;
}
