executeClamAV method

Future<String> executeClamAV(
  1. String fileId, {
  2. bool? purgeInfected,
})

Execute ClamAV virus checking Add-On for a given target.

See https://uploadcare.com/api-refs/rest-api/v0.7.0/#operation/ucClamavVirusScanExecute

Implementation

Future<String> executeClamAV(
  String fileId, {
  bool? purgeInfected,
}) async {
  return await _execute(
    pathname: '/addons/uc_clamav_virus_scan/execute/',
    params: {
      'target': fileId,
      if (purgeInfected != null)
        'params': {'purge_infected': purgeInfected.toString()},
    },
  );
}