vertx / io.vertx.core.file / FileSystem / mkdirs

mkdirs

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

Create the directory represented by path and any non existent parents, 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 mkdirs(path: String, perms: String, handler: Handler<AsyncResult<Void>>): FileSystem

Create the directory represented by path and any non existent parents, 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