NAnt SDK Documentation - v0.92 |

# MkDirTask Class

Creates a directory and any non-existent parent directory if necessary.

For a list of all members of this type, see MkDirTask Members.

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.MkDirTask

[Visual Basic]
<TaskName(Name:="mkdir")>
Public Class MkDirTask
Inherits Task
[C#]
[TaskName(Name="mkdir")]
public class MkDirTask : Task

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Example

Create the directory `build`.

    <mkdir dir="build" />

Create the directory tree `one/two/three`.

    <mkdir dir="one/two/three" />

#### Requirements

Namespace: NAnt.Core.Tasks

Assembly: NAnt.Core (in NAnt.Core.dll)

#### See Also

MkDirTask Members | NAnt.Core.Tasks Namespace