vertx / io.vertx.core.file / FileSystem / mkdir

# mkdir

`abstract fun mkdir(path: String, handler: Handler<AsyncResult<Void>>): FileSystem`

Create the directory represented by `path`, asynchronously.

The operation will fail if the directory already exists.

### Parameters

`path` - path to the file

`handler` - the handler that will be called on completion

Return
a reference to this, so the API can be used fluently

`abstract fun mkdir(path: String, perms: String, handler: Handler<AsyncResult<Void>>): FileSystem`

Create the directory represented by `path`, asynchronously.

The new directory will be created with permissions as specified by `perms`.

The permission String takes the form rwxr-x--- as specified in here.

The operation will fail if the directory already exists.

### Parameters

`path` - path to the file

`perms` - the permissions string

`handler` - the handler that will be called on completion

Return
a reference to this, so the API can be used fluently