B.22 MkdirTask
Prev | Appendix B. Core tasks | Next

## B.22 MkdirTask

Creates a directory, including any necessary but non-existent parent directories. Does nothing if the directory already exists.

Table B.23: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`dir` | `String` | The directory that is to be created. | n/a | Yes
`mode` | `Integer` | The mode to create the directory with. | From umask | No

### B.22.1 Examples

    <!-- Create a temp directory -->
    <mkdir dir="/tmp/foo" />

    <!-- Using mkdir with a property -->
    <mkdir dir="${dirs.install}/tmp" />

Prev | Up | Next
B.21 LoadFileTask | Home | B.23 MoveTask