All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vtom.vertx.pipeline.component.fs.action.VtmFsSymlink Maven / Gradle / Ivy

There is a newer version: 1.1-beta
Show newest version
package io.vtom.vertx.pipeline.component.fs.action;

import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vtom.vertx.pipeline.tk.Pvtk;

public class VtmFsSymlink extends AbstractFsAction {


  private String existing;

  public VtmFsSymlink(String link) {
    super(link);
  }

  public VtmFsSymlink existing(String existing) {
    this.existing = existing;
    return this;
  }

  @Override
  public VtmFsOut out() {
    return new AbstractVtmFsOut(stepskips()) {
      @Override
      public void execute(Vertx vertx, Handler> handler) {
        vertx.fileSystem().symlink(path(), existing, Pvtk.handleTo(handler));
      }
    };
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy