Class FTPPwd

java.lang.Object
org.oddjob.net.ftp.FTPPwd
All Implemented Interfaces:
FTPCommand

public class FTPPwd extends Object implements FTPCommand
Author:
rob

Description

FTP command to get the current remote present working directory.
  • Constructor Details

    • FTPPwd

      public FTPPwd()
  • Method Details

    • executeWith

      public boolean executeWith(org.apache.commons.net.ftp.FTPClient client) throws IOException
      Description copied from interface: FTPCommand
      Execute the command.
      Specified by:
      executeWith in interface FTPCommand
      Parameters:
      client - The client session.
      Returns:
      true if OK, false otherwise.
      Throws:
      IOException - If something goes wrong.
    • getPwd

      public String getPwd()
    • toString

      public String toString()
      Overrides:
      toString in class Object