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

# rxCopy

`open fun rxCopy(from: String, to: String): Single<Void>`

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

The copy will fail if the destination already exists.

### Parameters

`from` - the path to copy from

`to` - the path to copy to

Return

`open fun rxCopy(from: String, to: String, options: CopyOptions): Single<Void>`

Copy 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

Return