This function lists infected files from a ClamAV® virus scan.
Note:
You must run the APIs in this order:
ClamScanner::start_scan
to start the virus scan.ClamScanner::get_scan_status
in a loop until the scan is finished.ClamScanner::list_infected_files
to get a report of the complete list of infected files.ClamScanner::disinfect_files
to queue the disinfection of the files.ClamScanner::check_disinfection_status
in a loop until you get a done status.uapi --output=jsonpretty \ --user=username \ ClamScanner \ list_infected_files
{- "apiversion": 3,
- "func": "list_infected_files",
- "module": "ClamScanner",
- "result": {
- "data": [
- {
- "file": "/home/username/infected_file.txt",
- "virus_type": "Eicar-Signature"
}
], - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}