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