Class MakeDirs
source code
action.Action --+
|
action.RecipeAction --+
|
BuildAction --+
|
_FileAction --+
|
MakeDirs
NAME
r.MakeDirs() - Creates directories
SYNOPSIS
r.MakeDirs(dir(s), [component],
[mode])
DESCRIPTION
The r.MakeDirs() class is called from within a Conary
recipe to create directories.
KEYWORDS
The r.MakeDirs() class accepts the following keywords,
with default values shown in parentheses when applicable:
component : (None) Set to component name if package is
responsible for the directory.
mode : (0755) Specify directory access permissions
package : (None) If set, must be a string that specifies the
package (package='packagename'), component
(package=':componentname'), or package and component
(package='packagename:componentname') in which to place
the files added while executing this command. Previously-specified
PackageSpec or ComponentSpec lines will
override the package specification, since all package and component
specifications are considered in strict order as provided by the
recipe.
EXAMPLES
r.MakeDirs('/misc', component='runtime')
Demonstrates r.MakeDirs() creating the
/misc directory while specifying the :runtime
component is responsible for this directory.
r.MakeDirs('/afs', mode=0700)
Demonstrates r.MakeDirs() creating the
/afs directory and setting access permissions to
0700.
Do the build action
- Overrides:
BuildAction.do
- (inherited documentation)
|