vertx / io.vertx.rxjava.core.file / FileSystem / move

# move

`open fun move(from: String, to: String, handler: Handler<AsyncResult<Void>>): FileSystem`

Move a file from the path `from` to path `to`, asynchronously.

The move will fail if the destination already exists.

### Parameters

`from` - the path to copy from

`to` - the path to copy to

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

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

`open fun move(from: String, to: String, options: CopyOptions, handler: Handler<AsyncResult<Void>>): FileSystem`

Move a file from the path `from` to path `to`, asynchronously.

### Parameters

`from` - the path to copy from

`to` - the path to copy to

`options` - options describing how the file should be copied

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

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