NAME

CBAIS::Actions::Rm - remove files and directories


SYNOPSIS

$rm = new CBAIS::Actions::Rm(FILE=> '/usr/bin/yp*', );

if ($rm->execute()) { print ``removed /usr/bin/yp*\n''; }


DESCRIPTION

The CBAIS::Actions::Rm class implements a CBAIS action which removes files. The specified file may contain standard unix filename expansions which will be procesed using the perl glob function. If the specified file is a directory, it will be removed (along with all of its contents).

The verify operation is supported. The undo operation is not currently supported. A future release of CBAIS may support the undo method.

The constructor recognises the following keys

FILE
The file or directory to remove. May contain shell expansions.


SEE ALSO

the CBAIS::Actions::Action manpage

perlfunc/glob