NAME

CBAIS::Actions::Mkdir - make a directory


SYNOPSIS

$mkdir = new CBAIS::Actions::Mkdir(DIR => '/var/log/www', MODE => '0755', OWNER => 'root', GROUP => 'other', );

if ($append->execute()) { print ``mkdir /var/log/www\n''; }

if ($append->undo()) { print ``removd dir /var/log/www\n''; }


DESCRIPTION

The CBAIS::Actions::Mkdir class implements a CBAIS action which creates directories. Directory trees may be specified, in which case all directories in the tree will have the same permissions (owner, group, and mode).

This class implements the undo method. If the initial mkdir resulted in a directory tree being created the undo will not remove the tree, but only the final directory. This is a known limitation.