Clamex v0.2.2 Clamex.Scanner.Clamscan View Source
Scanner implementation for clamscan command-line utility.
Link to this section Summary
Functions
Perform file scan using clamscan command-line utility.
Link to this section Functions
Specs
Perform file scan using clamscan command-line utility.
Examples
iex> Clamex.Scanner.Clamscan.scan("test/files/virus.txt")
{:error, :virus_found}
iex> Clamex.Scanner.Clamscan.scan("test/files/safe.txt")
:okError reasons
:virus_found- file is infected:cannot_access_file- file specified aspathcannot be accessed:scanner_not_available- scanner is not available atexecutable_path- any other error reported by the scanner will be returned as is (as String)