Method: Hyrax::VirusScanner#clam_av_scanner

Defined in:
app/models/hyrax/virus_scanner.rb

#clam_av_scannerObject



44
45
46
47
48
49
# File 'app/models/hyrax/virus_scanner.rb', line 44

def clam_av_scanner
  scan_result = ClamAV.instance.method(:scanfile).call(file)
  return false if scan_result.zero?
  warning "A virus was found in #{file}: #{scan_result}"
  true
end