clamscan wrapper¶
API for scanning files using clamscan standalone program.
- antivirus.wrappers.clamscan.scan_file(path)[source]¶
Scan path for viruses using clamscan program.
Parameters: path (str) – Relative or absolute path of file/directory you need to scan. Returns: {filename: ("FOUND", "virus type")} or blank dict. Return type: dict Raises: AssertionError – When the internal file doesn’t exists.