List of usage examples for io.vertx.core.file FileSystem copy
Future<Void> copy(String from, String to, CopyOptions options);
From source file:examples.FileSystemExamples.java
License:Open Source License
public void example1(Vertx vertx) { FileSystem fs = vertx.fileSystem(); // Copy file from foo.txt to bar.txt fs.copy("foo.txt", "bar.txt", res -> { if (res.succeeded()) { // Copied ok! } else {/* ww w.ja v a2 s . co m*/ // Something went wrong } }); }