Command command = new Command(Command.PWD); Reply reply = sendCommand(command); reply.dumpReply(); reply.validate(); return ReplyFormatter.parsePWDReply(reply);
if(workingDirectory == null) { Command command = new Command(Command.PWD); Reply reply = sendCommand(command); reply.dumpReply(); reply.validate(); workingDirectory = ReplyFormatter.parsePWDReply(reply); } return workingDirectory;
    public String getWorkDirectory() throws IOException,UnkownReplyStateException,FtpWorkflowException,FtpIOException    {        Command command = new Command(Command.PWD);        Reply reply = sendCommand(command);        reply.dumpReply();        reply.validate();        return ReplyFormatter.parsePWDReply(reply);    }