Class StatTask

java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture, Runnable

public class StatTask extends AbstractFileTask
An SFTP Task that uploads complete files. You cannot directly create a StatTask, instead use StatTask.StatTaskBuilder.
 client.addTask(StatTaskBuilder.create().
      withPath("/path/on/remote/remote.txt").
      build());
 
  • Constructor Details

  • Method Details

    • doTask

      public void doTask()
      Specified by:
      doTask in class com.sshtools.common.ssh.ConnectionAwareTask
    • getAttributes

      public com.sshtools.common.sftp.SftpFileAttributes getAttributes()