CBAIS::Actions::Rm - remove files and directories
$rm = new CBAIS::Actions::Rm(FILE=> '/usr/bin/yp*', );
if ($rm->execute())
{
print ``removed /usr/bin/yp*\n'';
}
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
the CBAIS::Actions::Action manpage
perlfunc/glob