Dianne Skoll
and 1 contributors

NAME

File::VirusScan::Engine::Command::ClamAV::Clamscan - File::VirusScan backend for scanning with clamscan

SYNOPSIS

    use File::VirusScan;
    my $s = File::VirusScan->new({
        engines => {
                '-Command::ClamAV::Clamscan' => {
                        command => '/path/to/clamscan',
                },
                ...
        },
        ...
}

DESCRIPTION

File::VirusScan backend for scanning using ClamAV's clamscan command-line scanner.

This class inherits from, and follows the conventions of, File::VirusScan::Engine::Command. See the documentation of that module for more information.

CLASS METHODS

new ( $conf )

Creates a new scanner object. $conf is a hashref containing:

command

Fully-qualified path to the 'clamscan' binary.

INSTANCE METHODS

scan ( $pathname )

Scan the path provided using the clamscan binary provided to the constructor. Returns an File::VirusScan::Result object.

DEPENDENCIES

Cwd, File::VirusScan::Result,

SEE ALSO

http://www.clamav.net/

AUTHOR

Dianne Skoll (dfs@roaringpenguin.com) Dave O'Neill (dmo@roaringpenguin.com)

LICENCE AND COPYRIGHT

Copyright (c) 2007 Roaring Penguin Software, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, or (at your option) any later version.