demarches-normaliennes/app/services/clamav_service.rb
2016-04-14 17:43:27 +02:00

9 lines
No EOL
192 B
Ruby

class ClamavService
def self.safe_io_data? path_file
client = ClamAV::Client.new
response = client.execute(ClamAV::Commands::ScanCommand.new(path_file))
puts response
end
end