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

# mkdir

`open 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

`open 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