Name

treemkdir — Makes a descending tree of directories (equivalent to the mkdir -p command) which includes calls to setgroupperms.

Synopsis

use Wacs;
treemkdir(...); 
 

Parameters

parameterdescription
originThe toplevel directory from which to start - this is required to already exist.
pathThe path below the toplevel directory given above to be created (or partially created as necessary)

Summary

The treemkdir function is the equivalent of the -p option to the mkdir command which is not supported by the internal mkdir call of perl. It makes each element of the path it is asked to make if it does not already exist. This is part of the effort to reduce the dependency on the system call to unix shell commands within WACS. Each directory created has it's permissions set using setgroupperms.

Availability

treemkdir is available only in perl as it is used only for collection management and infrastructure tasks.